<?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: Solr on HDP 2.5.3 Fails to understand NameService in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165550#M53772</link>
    <description>&lt;P&gt;I have been running this by using command line with active Namenode as host name in hdfs path now.&lt;/P&gt;&lt;P&gt;Tried hadoop-httpfs. was able to do a get (read). However, creating a collection failed with error No File System for scheme http ( protocol for hadoop-httpfs).&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 18:47:21 GMT</pubDate>
    <dc:creator>sriramdboss</dc:creator>
    <dc:date>2017-02-16T18:47:21Z</dc:date>
    <item>
      <title>Solr on HDP 2.5.3 Fails to understand NameService</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165549#M53771</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have a running 2.5.3 cluster. Downloaded the Solr repo and got it added to Ambari as per the documentation available. &lt;/P&gt;&lt;P&gt;The SolrCloud is configured to use HDFS and I also see the directory /solr created in HDFS. &lt;/P&gt;&lt;P&gt;Below is the startup command that is getting executed, when I start the service from Ambari and the service successfully starts.&lt;/P&gt;&lt;P&gt;I issue is see is with -Dsolr.hdfs.home=hdfs://nameservice/solr which should also include the port. How can we modify this. &lt;/P&gt;&lt;P&gt;I tried setting the hdfs home property with the complete defaultfs path. hdfs://nameserivce is getting appended in every case.&lt;/P&gt;&lt;PRE&gt;Execute['/opt/lucidworks-hdpsearch/solr/bin/solr start -h solr-host -cloud -z zk1:2181,zk2:2181,zk3:2181/solr -Dsolr.directoryFactory=HdfsDirectoryFactory -Dsolr.lock.type=hdfs -Dsolr.hdfs.home=hdfs://nameservice/solr -p 8983 -m 512m &amp;gt;&amp;gt; /var/log/service_solr/solr-service.log 2&amp;gt;&amp;amp;1'] {'environment': {'JAVA_HOME': '/usr/java/default'}, 'user': 'solr'}

However, not able to create a collection or run the service check. 

solr Log says unknown host nameservice.

"ERROR [c:collection1 s:shard2 r:core_node2 x:collection1_shard2_replica1] org.apache.solr.core.CoreContainer (CoreContainer.java:826) - Error creating core [collection1_shard2_replica1]: java.net.UnknownHostException: nameservice"&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:13:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165549#M53771</guid>
      <dc:creator>sriramdboss</dc:creator>
      <dc:date>2017-02-08T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Solr on HDP 2.5.3 Fails to understand NameService</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165550#M53772</link>
      <description>&lt;P&gt;I have been running this by using command line with active Namenode as host name in hdfs path now.&lt;/P&gt;&lt;P&gt;Tried hadoop-httpfs. was able to do a get (read). However, creating a collection failed with error No File System for scheme http ( protocol for hadoop-httpfs).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165550#M53772</guid>
      <dc:creator>sriramdboss</dc:creator>
      <dc:date>2017-02-16T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Solr on HDP 2.5.3 Fails to understand NameService</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165551#M53773</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2310/sriramdboss.html" nodeid="2310"&gt;@Sundara Palanki&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Can you check your solr.hdfs.home and solr.hdfs.confdir. Your solr.hdfs.home looks good, so check confdir, it should point to /etc/hadoop/conf/ and your hadoop conf files like core-site.xml should be there.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 08:41:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-on-HDP-2-5-3-Fails-to-understand-NameService/m-p/165551#M53773</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-19T08:41:35Z</dc:date>
    </item>
  </channel>
</rss>

