{"id":265,"date":"2015-07-05T20:13:03","date_gmt":"2015-07-05T20:13:03","guid":{"rendered":"https:\/\/www.securekloud.com\/blog\/?p=265"},"modified":"2023-03-24T10:25:38","modified_gmt":"2023-03-24T10:25:38","slug":"open-sourcing-s2c-tool","status":"publish","type":"post","link":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/","title":{"rendered":"How to Use S2C Tool: A Step-by-Step Guide"},"content":{"rendered":"<p>This is a follow up post to our previous article \u2018<a title=\"Apache Solr to Amazon CloudSearch Migration Tool\" href=\"https:\/\/www.securekloud.com\/blog\/apache-solr-to-amazon-cloudsearch-migration-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\">Migrating Solr to Amazon CloudSearch using the S2C tool<\/a>\u2019. Last month, we released an open source tool \u2018S2C\u2019, a Linux console based utility that helps developers to migrate search index from Apache Solr to Amazon CloudSearch.<\/p>\n<p><a href=\"https:\/\/www.securekloud.com\/next-gen-aws-premier-consulting-partner\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-95 size-full\" src=\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2021\/04\/AWS-Consulting-Services.jpg\" alt=\"\" width=\"800\" height=\"120\" srcset=\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2021\/04\/AWS-Consulting-Services.jpg 800w, https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2021\/04\/AWS-Consulting-Services-300x45.jpg 300w, https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2021\/04\/AWS-Consulting-Services-768x115.jpg 768w, https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2021\/04\/AWS-Consulting-Services-600x90.jpg 600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>In this article, we share the source code of the S2C tool which will allow developers to customize and extend the S2C tool to suit their requirements. The source code can be downloaded in the below link.<\/p>\n<p>Further, we discuss step-by-step instructions on how to build the source code of S2C tool.<\/p>\n<h2>Pre-Requisites<\/h2>\n<p>In this section, we detail the pre-requisites for building S2C tool process.<\/p>\n<ul>\n<li>The application is developed using Java.\u00a0<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index-jsp-138363.html\">Download and Install Java 8\u00a0<\/a>.Validate the JDK path and ensure the environment variables like JAVA_HOME, classpath, path is set correctly.<\/li>\n<li>We will use Gradle to build the S2C tool.\u00a0<a title=\"Gradle \" href=\"http:\/\/www.gradle.org\/downloads\">Download and Install Gradle.<\/a><br \/>\nPlease read getting-started.html (inside Gradle base folder) in setting up Gradle. Gradle is an open source build tool which does not require any pre-requisites like Maven or Ant.<\/li>\n<li>Download and install Git \u2013 <a title=\"Git\" href=\"http:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-Installing-Git\">http:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-Installing-Git<\/a>\u00a0and then use the following command to clone the source from Git<code>git clone https:\/\/github.com\/8KMiles\/s2c\/.git\u00a0<\/code>(requires Git installation)Note: The source code is available in public and does not require any credentials to access the source.<\/li>\n<\/ul>\n<h2>Build process<\/h2>\n<p>We will use Gradle, an open source build tool to build the S2C migration utility.<\/p>\n<ul>\n<li>Verify the path, classpath, environment variables of Java, Gradle. Example: JAVA_HOME, GRADLE_HOME<\/li>\n<li>Unzip the downloaded S2C source code and run the following command from the main directory. Example: E:\/s2ctool\/s2c-master or \/opt\/s2ctool\/s2c-master<\/li>\n<\/ul>\n<p><code style=\"background-color: #eee; border: 1px solid #999; display: block; color: orange; margin-top: 20px;\">.\/gradlew -PexportPath=\/tmp :s2c-cli:exportTarGz<br \/>\nThe above command will create .tgz (zip file) at \u2018\/tmp\u2019 directory. The directory path can be changed if required<br \/>\nor<br \/>\ngradle exportTarGz<br \/>\nThe above command will create .tgz at \u2018s2c-master\/s2c-cli\/tmp\u2019 directory.<br \/>\nor<br \/>\ngradle exportZip<br \/>\nThe above command will create .zip at \u2018s2c-master\/s2c-cli\/tmp\u2019 directory.<br \/>\nBuild output file:s2c-cli-1.0.zip or s2c-cli-1.0.tgz<br \/>\n<\/code><\/p>\n<ul>\n<li>The build output is the final product that is deployed to do migration from Solr to Amazon CloudSearch. The deployment steps are discussed in detail in the original blog \u2018Migrating Solr to Amazon CloudSearch using the S2C tool\u2019.<\/li>\n<li>Please do write your feedback and suggestions in the below comments section to improve this tool. We also intend to write a follow-up post sharing the original source code of this tool.<br \/>\n<h2>About the Authors<\/h2>\n<p><a href=\"https:\/\/www.linkedin.com\/in\/kernel164\"><strong>Dhamodharan P<\/strong><\/a> is a Senior Cloud Architect at SecureKloud.<br \/>\n<a href=\"https:\/\/www.linkedin.com\/in\/rdwarak\"><strong>Dwarakanath R<\/strong><\/a> is a Principal Architect at SecureKloud.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is a follow up post to our previous article \u2018Migrating Solr to Amazon CloudSearch using the S2C tool\u2019. Last month, we released an open source tool \u2018S2C\u2019, a Linux console based utility that helps developers to migrate search index from Apache Solr to Amazon CloudSearch. In this article, we share the source code of [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":267,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[321],"tags":[],"class_list":["post-265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-migration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use S2C Tool: A Step-by-Step Guide | SecureKloud<\/title>\n<meta name=\"description\" content=\"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use S2C Tool: A Step-by-Step Guide | SecureKloud\" \/>\n<meta property=\"og:description\" content=\"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"SecureKloud\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-05T20:13:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T10:25:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2015\/07\/apache-solr-to-amazon-cloudsearch-migration-tool-source-code_v1-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Joe Arputhan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joe Arputhan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\"},\"author\":{\"name\":\"Joe Arputhan\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/de22247532aa8172abce3df9a1b12708\"},\"headline\":\"How to Use S2C Tool: A Step-by-Step Guide\",\"datePublished\":\"2015-07-05T20:13:03+00:00\",\"dateModified\":\"2023-03-24T10:25:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\"},\"wordCount\":391,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/#organization\"},\"articleSection\":[\"Cloud Migration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\",\"url\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\",\"name\":\"How to Use S2C Tool: A Step-by-Step Guide | SecureKloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/#website\"},\"datePublished\":\"2015-07-05T20:13:03+00:00\",\"dateModified\":\"2023-03-24T10:25:38+00:00\",\"description\":\"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.securekloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use S2C Tool: A Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#website\",\"url\":\"https:\/\/www.securekloud.com\/blog\/\",\"name\":\"SecureKloud\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.securekloud.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#organization\",\"name\":\"SecureKloud\",\"url\":\"https:\/\/www.securekloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/03\/header-logo.png\",\"contentUrl\":\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/03\/header-logo.png\",\"width\":240,\"height\":48,\"caption\":\"SecureKloud\"},\"image\":{\"@id\":\"https:\/\/www.securekloud.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/de22247532aa8172abce3df9a1b12708\",\"name\":\"Joe Arputhan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/04\/joe-arputhan-150x150.jpg\",\"contentUrl\":\"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/04\/joe-arputhan-150x150.jpg\",\"caption\":\"Joe Arputhan\"},\"description\":\"Writer, researcher, content marketing evangelist, cloud and blockchain enthusiast.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/joe-arputhan-68b90523\/\"],\"url\":\"https:\/\/www.securekloud.com\/blog\/author\/joe-arputhan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use S2C Tool: A Step-by-Step Guide | SecureKloud","description":"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/","og_locale":"en_US","og_type":"article","og_title":"How to Use S2C Tool: A Step-by-Step Guide | SecureKloud","og_description":"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.","og_url":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/","og_site_name":"SecureKloud","article_published_time":"2015-07-05T20:13:03+00:00","article_modified_time":"2023-03-24T10:25:38+00:00","og_image":[{"width":800,"height":400,"url":"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2015\/07\/apache-solr-to-amazon-cloudsearch-migration-tool-source-code_v1-1.jpg","type":"image\/jpeg"}],"author":"Joe Arputhan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Joe Arputhan","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#article","isPartOf":{"@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/"},"author":{"name":"Joe Arputhan","@id":"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/de22247532aa8172abce3df9a1b12708"},"headline":"How to Use S2C Tool: A Step-by-Step Guide","datePublished":"2015-07-05T20:13:03+00:00","dateModified":"2023-03-24T10:25:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/"},"wordCount":391,"commentCount":0,"publisher":{"@id":"https:\/\/www.securekloud.com\/blog\/#organization"},"articleSection":["Cloud Migration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/","url":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/","name":"How to Use S2C Tool: A Step-by-Step Guide | SecureKloud","isPartOf":{"@id":"https:\/\/www.securekloud.com\/blog\/#website"},"datePublished":"2015-07-05T20:13:03+00:00","dateModified":"2023-03-24T10:25:38+00:00","description":"Get the source code of the S2C tool to help you customize and leverage the tool to suit your requirements. Also, find the link to download the source code.","breadcrumb":{"@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.securekloud.com\/blog\/open-sourcing-s2c-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.securekloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use S2C Tool: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.securekloud.com\/blog\/#website","url":"https:\/\/www.securekloud.com\/blog\/","name":"SecureKloud","description":"","publisher":{"@id":"https:\/\/www.securekloud.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.securekloud.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.securekloud.com\/blog\/#organization","name":"SecureKloud","url":"https:\/\/www.securekloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.securekloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/03\/header-logo.png","contentUrl":"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/03\/header-logo.png","width":240,"height":48,"caption":"SecureKloud"},"image":{"@id":"https:\/\/www.securekloud.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/de22247532aa8172abce3df9a1b12708","name":"Joe Arputhan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.securekloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/04\/joe-arputhan-150x150.jpg","contentUrl":"https:\/\/www.securekloud.com\/blog\/wp-content\/uploads\/2023\/04\/joe-arputhan-150x150.jpg","caption":"Joe Arputhan"},"description":"Writer, researcher, content marketing evangelist, cloud and blockchain enthusiast.","sameAs":["https:\/\/www.linkedin.com\/in\/joe-arputhan-68b90523\/"],"url":"https:\/\/www.securekloud.com\/blog\/author\/joe-arputhan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":4,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions\/1146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/media\/267"}],"wp:attachment":[{"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.securekloud.com\/blog\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}