<?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: SolrResourceLoader cannot load files from outside the instance's directory in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46555#M44156</link>
    <description>&lt;P&gt;Please find more traces attached.&amp;nbsp;It seems that the command does not pick up solr&amp;nbsp;configuration from zookeeper&amp;nbsp;and looks for it locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.solr.common.SolrException: Error loading solr config from file:/tmp/hadoop-solr/mapred/local/1477069555232/dae8337e-e74b-4212-b513-3c4b000dfe30.solr.zip/file:/tmp/hadoop-solr/mapred/local/1477069555232/dae8337e-e74b-4212-b513-3c4b000dfe30.solr.zip/conf/solrconfig.xml
	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:154)
	at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:80)
	at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)
	... 14 more
Caused by: java.io.IOException: For security reasons, SolrResourceLoader cannot load files from outside the instance's directory: /var/lib/solr/solr_configs/solr_hbase_conf/solrconfig.xml; if you want to override this safety feature and you are sure about the consequences, you can pass the system property -Dsolr.allow.unsafe.resourceloading=true to your JVM
	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:340)
	at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
	at org.apache.solr.core.Config.&amp;lt;init&amp;gt;(Config.java:117)
	at org.apache.solr.core.Config.&amp;lt;init&amp;gt;(Config.java:87)
	at org.apache.solr.core.SolrConfig.&amp;lt;init&amp;gt;(SolrConfig.java:167)
	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:145)
	... 16 more
16/10/21 17:06:00 ERROR hadoop.ForkedMapReduceIndexerTool: Job failed! jobName: HBaseMapReduceIndexerTool/HBaseIndexerMapper, jobId: job_local2112254315_0001
16/10/21 17:06:00 INFO hadoop.ForkedMapReduceIndexerTool: Deleting generated output directory /tmp/search-bbaef17e-c4d9-4e0c-adb1-39c830d53c3a&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Oct 2016 17:08:47 GMT</pubDate>
    <dc:creator>ginsul</dc:creator>
    <dc:date>2016-10-21T17:08:47Z</dc:date>
    <item>
      <title>SolrResourceLoader cannot load files from outside the instance's directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46551#M44155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to index hbase table with solr&amp;nbsp;using batch indexer as per &lt;A href="http://www.cloudera.com/documentation/archive/search/1-3-0/Cloudera-Search-User-Guide/csug_hbase_batch_indexer.html" target="_blank"&gt;http://www.cloudera.com/documentation/archive/search/1-3-0/Cloudera-Search-User-Guide/csug_hbase_batch_indexer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, running&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hadoop --config /etc/hadoop/conf jar \
/usr/lib/hbase-solr/tools/hbase-indexer-mr-*-job.jar --conf \
/etc/hbase/conf/hbase-site.xml -D 'mapred.child.java.opts=-Xmx500m' \
--hbase-indexer-file $HOME/morphline-hbase-mapper.xml --zk-host \
127.0.0.1:2181/solr --collection hbase-collection1 --go-live --log4j \
src/test/resources/log4j.properties&lt;/PRE&gt;&lt;P&gt;yields the following exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: java.io.IOException: For security reasons, SolrResourceLoader cannot load files from outside the instance's directory: /var/lib/solr/solr_configs/solr_hbase_conf/solrconfig.xml; if you want to override this safety feature and you are sure about the consequences, you can pass the system property -Dsolr.allow.unsafe.resourceloading=true to your JVM&lt;/PRE&gt;&lt;P&gt;The instance directory is&amp;nbsp;&lt;SPAN&gt;/var/lib/solr/hbase-core.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not entirely sure what file resources are in question here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please advice me on this matter?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Gin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:45:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46551#M44155</guid>
      <dc:creator>ginsul</dc:creator>
      <dc:date>2022-09-16T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: SolrResourceLoader cannot load files from outside the instance's directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46555#M44156</link>
      <description>&lt;P&gt;Please find more traces attached.&amp;nbsp;It seems that the command does not pick up solr&amp;nbsp;configuration from zookeeper&amp;nbsp;and looks for it locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.solr.common.SolrException: Error loading solr config from file:/tmp/hadoop-solr/mapred/local/1477069555232/dae8337e-e74b-4212-b513-3c4b000dfe30.solr.zip/file:/tmp/hadoop-solr/mapred/local/1477069555232/dae8337e-e74b-4212-b513-3c4b000dfe30.solr.zip/conf/solrconfig.xml
	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:154)
	at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:80)
	at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)
	... 14 more
Caused by: java.io.IOException: For security reasons, SolrResourceLoader cannot load files from outside the instance's directory: /var/lib/solr/solr_configs/solr_hbase_conf/solrconfig.xml; if you want to override this safety feature and you are sure about the consequences, you can pass the system property -Dsolr.allow.unsafe.resourceloading=true to your JVM
	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:340)
	at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
	at org.apache.solr.core.Config.&amp;lt;init&amp;gt;(Config.java:117)
	at org.apache.solr.core.Config.&amp;lt;init&amp;gt;(Config.java:87)
	at org.apache.solr.core.SolrConfig.&amp;lt;init&amp;gt;(SolrConfig.java:167)
	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:145)
	... 16 more
16/10/21 17:06:00 ERROR hadoop.ForkedMapReduceIndexerTool: Job failed! jobName: HBaseMapReduceIndexerTool/HBaseIndexerMapper, jobId: job_local2112254315_0001
16/10/21 17:06:00 INFO hadoop.ForkedMapReduceIndexerTool: Deleting generated output directory /tmp/search-bbaef17e-c4d9-4e0c-adb1-39c830d53c3a&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:08:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46555#M44156</guid>
      <dc:creator>ginsul</dc:creator>
      <dc:date>2016-10-21T17:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: SolrResourceLoader cannot load files from outside the instance's directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46556#M44157</link>
      <description>&lt;P&gt;Lucky me! This works. Credit for the idea goes to:&amp;nbsp;&lt;A href="https://github.com/NGDATA/hbase-indexer/wiki/Batch-indexing" target="_blank"&gt;https://github.com/NGDATA/hbase-indexer/wiki/Batch-indexing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hadoop jar /opt/cloudera/parcels/CDH-5.4.11-1.cdh5.4.11.p0.5/lib/hbase-solr/tools/hbase-indexer-mr-1.5-cdh5.4.11-job.jar  \
    --hbase-indexer-zk 127.0.0.1 \
    --hbase-indexer-name hbaseIndexer \
    --reducers 0&lt;/PRE&gt;&lt;P&gt;I guess all the info is picked up from the indexer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:36:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SolrResourceLoader-cannot-load-files-from-outside-the/m-p/46556#M44157</guid>
      <dc:creator>ginsul</dc:creator>
      <dc:date>2016-10-21T17:36:01Z</dc:date>
    </item>
  </channel>
</rss>

