<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Installing Solr on yarn  using Slider in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98590#M61697</link>
    <description>&lt;P&gt;The directory ${AGENT_WORK_ROOT}/app/install/solr-* will be created for you by Slider.  Slider will untar your Solr tarball to the ${AGENT_WORK_ROOT}/app/install directory.  That's why Slider needs to know the name of the directory contained in your tarball.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 04:05:09 GMT</pubDate>
    <dc:creator>billie</dc:creator>
    <dc:date>2015-12-11T04:05:09Z</dc:date>
    <item>
      <title>Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98587#M61694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to run solr on yarn using the link &lt;A target="_blank" href="https://github.com/LucidWorks/solr-slider"&gt;lucidworksSolrSlider&lt;/A&gt;, apart from taking help from &lt;A target="_blank" href="http://slider.incubator.apache.org/docs/getting_started.html#resspec"&gt;slider.incubator.apache.org/docs/getting_started.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is my folder structure:&lt;/P&gt;&lt;PRE&gt;[solrs@ip-10-0-0-217 solr-slider]$ ls -lrt
total 131744
-rw-rw-r--. 1 solrs solrs      3182 Dec 10 01:17 README.md
drwxrwxr-x. 4 solrs solrs        32 Dec 10 01:17 package
-rw-rw-r--. 1 solrs solrs      2089 Dec 10 01:17 metainfo.xml
-rw-rw-r--. 1 solrs solrs     11358 Dec 10 01:17 LICENSE
-rw-rw-r--. 1 solrs solrs 134874517 Dec 10 01:37 solr-on-yarn.zip
-rw-rw-r--. 1 solrs solrs       277 Dec 10 01:49 resources-default.json
-rw-rw-r--. 1 solrs solrs      1355 Dec 10 15:33 appConfig-default.json
&lt;/PRE&gt;&lt;P&gt;appConfig-default.json:&lt;/P&gt;&lt;PRE&gt;{
  "schema": "http://example.org/specification/v2.0.0",
  "metadata": {
  },
  "global": {
    "application.def": "/user/solrs/.slider/package/solryarn/solr-on-yarn.zip",
    "java_home": "/usr/jdk64/jdk1.8.0_40",
    "site.global.app_root": "${AGENT_WORK_ROOT}/app/install/solr-5.2.0-SNAPSHOT",
    "site.global.zk_host": "localhost:2181",
    "site.global.solr_host": "${SOLR_HOST}",
    "site.global.listen_port": "${SOLR.ALLOCATED_PORT}",
    "site.global.xmx_val": "1g",
    "site.global.xms_val": "1g",
    "site.global.gc_tune": "-XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewG$
    "site.global.zk_timeout": "15000",
    "site.global.server_module": "--module=http",
    "site.global.stop_key": "solrrocks",
    "site.global.solr_opts": ""
  },
  "components": {
    "slider-appmaster": {
      "jvm.heapsize": "512M"
    },
    "SOLR": {
    }
  }
}
&lt;/PRE&gt;&lt;P&gt;resources-default.json:&lt;/P&gt;&lt;PRE&gt;{
  "schema" : "http://example.org/specification/v2.0.0",
  "metadata" : {
  },
  "global" : {
  },
  "components": {
    "slider-appmaster": {
    },
    "SOLR": {
      "yarn.role.priority": "1",
      "yarn.component.instances": "3",
      "yarn.memory": "1024"
    }
  }
}
&lt;/PRE&gt;&lt;P&gt;Could you please suggest me what will be the value of below parameters in appConfig-default.json file:&lt;/P&gt;&lt;PRE&gt;"site.global.app_root": "${AGENT_WORK_ROOT}/app/install/solr-5.2.0-SNAPSHOT",
"site.global.solr_host": "${SOLR_HOST}",
"site.global.listen_port": "${SOLR.ALLOCATED_PORT}",&lt;/PRE&gt;&lt;P&gt;Basically where should I find "/app/install/solr-5.2.0-SNAPSHOT"??&lt;/P&gt;&lt;P&gt;My Environment: HDP 2.3, Slider Core-0.80.0.2.3.2.0-2950&lt;/P&gt;&lt;P&gt;Thanks, hoping a quick reply.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:52:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98587#M61694</guid>
      <dc:creator>Rakesh Gupta</dc:creator>
      <dc:date>2022-09-16T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98588#M61695</link>
      <description>&lt;P&gt;@Gour Saha&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 01:43:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98588#M61695</guid>
      <dc:creator>Rakesh Gupta</dc:creator>
      <dc:date>2015-12-11T01:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98589#M61696</link>
      <description>&lt;P&gt;The only part of "site.global.app_root": "${AGENT_WORK_ROOT}/app/install/solr-5.2.0-SNAPSHOT" that you should change is the solr-5.2.0-SNAPSHOT.  You should make this match the version of the Solr tarball you downloaded.  (You can check the version by running "tar tf solr.tgz").&lt;/P&gt;&lt;P&gt;You probably also want to change "site.global.zk_host": "localhost:2181" to "site.global.zk_host": "${ZK_HOST}", which will configure Solr to use the same ZooKeeper instance Slider is using.&lt;/P&gt;&lt;P&gt;I think you can leave ${SOLR_HOST} as is, but I am not completely sure of the purpose of that parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 02:15:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98589#M61696</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-11T02:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98590#M61697</link>
      <description>&lt;P&gt;The directory ${AGENT_WORK_ROOT}/app/install/solr-* will be created for you by Slider.  Slider will untar your Solr tarball to the ${AGENT_WORK_ROOT}/app/install directory.  That's why Slider needs to know the name of the directory contained in your tarball.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 04:05:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98590#M61697</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-11T04:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98591#M61698</link>
      <description>&lt;P&gt;Do you think Solr on YARN is ready for a PoC?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 05:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98591#M61698</guid>
      <dc:creator>dorio</dc:creator>
      <dc:date>2015-12-11T05:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98592#M61699</link>
      <description>&lt;P&gt;Thanks for the response, but the slider application failed to start again.&lt;/P&gt;&lt;P&gt;When I look at the HDFS path:&lt;/P&gt;&lt;PRE&gt;[solr@sandbox solr-slider]$ hadoop fs -cat /user/solr/.slider/cluster/solr-yarn4/app_config.json
{
  "schema" : "http://example.org/specification/v2.0.0",
  "metadata" : { },
  "global" : {
    "site.global.gc_tune" : "-XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime",
    "site.fs.default.name" : "hdfs://sandbox.hortonworks.com:8020",
    "site.global.solr_host" : "${SOLR_HOST}",
    "site.global.solr_opts" : "",
    "zookeeper.hosts" : "sandbox.hortonworks.com",
    "site.global.server_module" : "--module=http",
    "site.global.stop_key" : "solrrocks",
    "java_home" : "/usr/lib/jvm/java-1.7.0-openjdk.x86_64/",
    "site.fs.defaultFS" : "hdfs://sandbox.hortonworks.com:8020",
    "site.global.zk_timeout" : "15000",
    "env.MALLOC_ARENA_MAX" : "4",
    "zookeeper.path" : "/services/slider/users/solr/solr-yarn4",
    "site.global.listen_port" : "8983",
    "zookeeper.quorum" : "sandbox.hortonworks.com:2181",
    "site.global.xmx_val" : "1g",
    "site.global.zk_host" : "${ZK_HOST}",
    "site.global.app_root" : "${AGENT_WORK_ROOT}/app/install/solr-5.3.1-SNAPSHOT",
    "application.def" : "/user/solr/.slider/package/solr-yarn/solr-on-yarn.zip",
    "site.global.xms_val" : "1g"
  },
  "credentials" : { },
  "components" : {
    "slider-appmaster" : {
      "jvm.heapsize" : "512M"
    },
    "SOLR" : { }
  }


&lt;/PRE&gt;&lt;P&gt;- The variable names "${ZK_HOST}" shoul nt they be replaced with actual values?&lt;/P&gt;&lt;P&gt;- Where should I look for the Solr specific logs as I am not able to find anything in the container logs.&lt;/P&gt;&lt;P&gt;- What is the value of ${AGENT_WORK_ROOT}? what is the absolute path?&lt;/P&gt;&lt;P&gt;- Is there any detailed documentation on how to deploy Solr application on yarn via Slider.&lt;/P&gt;&lt;P&gt;

Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:19:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98592#M61699</guid>
      <dc:creator>Rakesh Gupta</dc:creator>
      <dc:date>2015-12-11T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98593#M61700</link>
      <description>&lt;P&gt;ZK_HOST and AGENT_WORK_ROOT will be replaced by Slider.  The AGENT_WORK_ROOT will have the form /hadoop/yarn/local/usercache/&amp;lt;userName&amp;gt;/appcache/&amp;lt;appID&amp;gt;/&amp;lt;containerID&amp;gt; (where /hadoop/yarn/local is the directory specified by the yarn.nodemanager.local-dirs in yarn-site.xml).  Based on the solr_node.py script, it looks like the output of the Solr start command should end up in the slider-agent logs in the container log directory.  If containers are failing to launch, information about that should be in the AM log, slider.log in the log directory for container 0001.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 23:48:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98593#M61700</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-11T23:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98594#M61701</link>
      <description>&lt;P&gt;Another thing I noticed is that memory requested is pretty high if you're going to be running it on a VM.  It might not be launching Solr because it doesn't have enough memory.  I made the &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/778-config-changes.txt"&gt;these changes&lt;/A&gt; to appConfig and resources and was able to get Solr running on a VM that has 9GB of RAM.  You might need to make additional adjustments for your setup, and also make sure yarn.scheduler.minimum-allocation-mb isn't too high.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 00:38:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98594#M61701</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-12T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98595#M61702</link>
      <description>&lt;P&gt;I've added a comment to my initial response that should solve your problem.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 00:39:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98595#M61702</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-12T00:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98596#M61703</link>
      <description>&lt;P&gt;Thanks Billie for your response!&lt;/P&gt;&lt;P&gt;I was able run solr on yarn, the mistake was "site.global.app_root" did not have the correct name of my solr version which was solr-5.3.1&lt;/P&gt;&lt;P&gt;However when I stop the solr application via slider (slider stop solr-yarn8) and restart it, &lt;/P&gt;&lt;P&gt;1) the cores I created disappear and, which is bad. &lt;/P&gt;&lt;P&gt;2) new instances start on new ports, can I fix the ports?&lt;/P&gt;&lt;P&gt;3) also I am only able to connect to only one of the solr instances (solr UI).&lt;/P&gt;&lt;P&gt;4) Is it yet possible to deploy solr cloud on yarn using multiple instances of solr?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 01:30:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98596#M61703</guid>
      <dc:creator>Rakesh Gupta</dc:creator>
      <dc:date>2015-12-19T01:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98597#M61704</link>
      <description>&lt;P&gt;I guess this is a design limitation of the LucidWorks solr app package.  One thing you'd have to do to avoid losing data on restart is to configure Solr to store its data in HDFS.  You might be able to do this by setting the solr_opts parameter in the appConfig:&lt;/P&gt;&lt;PRE&gt;-Dsolr.directoryFactory=HdfsDirectoryFactory -Dsolr.lock.type=none -Dsolr.hdfs.confdir=/etc/hadoop/conf -Dsolr.hdfs.home=${DEFAULT_DATA_DIR}&lt;/PRE&gt;&lt;P&gt;You would also need to configure automatic failover when creating the collection:&lt;/P&gt;&lt;PRE&gt;curl "http://server:port/solr/admin/collections?action=CREATE&amp;amp;name=collection_name&amp;amp;numShards=2&amp;amp;autoAddReplicas=true"
&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Dec 2015 01:56:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98597#M61704</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-19T01:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98598#M61705</link>
      <description>&lt;P&gt;Slider has to run the Solr servers on random ports because it can't control where they are started (more than one might be started on the same host).  The next release of Slider will have an anti-affinity container placement option, so that might help.  You should be able to connect to each of the Solr instances that Slider creates.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 02:19:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98598#M61705</guid>
      <dc:creator>billie</dc:creator>
      <dc:date>2015-12-19T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Solr on yarn  using Slider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98599#M61706</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1237/rakeshbandhugupta.html" nodeid="1237"&gt;@Rakesh Gupta&lt;/A&gt; excellent question, are you still having issues with this? Can you accept best answer or provide your own solution?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 04:24:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Installing-Solr-on-yarn-using-Slider/m-p/98599#M61706</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-06T04:24:00Z</dc:date>
    </item>
  </channel>
</rss>

