Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

hue solr csv permission could not fetch

hue solr csv permission could not fetch

Contributor

Following your video example on 

 

getting the following error

{"message": "Could not fetch fields for collection nginx_logs2. See logs for more info.", "traceback": [["/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/libs/indexer/src/indexer/controller.py", 89, "get_fields", "field_data = SolrApi(SOLR_URL.get(), self.user, SECURITY_ENABLED.get()).fields(collection_or_core_name)"], ["/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/libs/libsolr/src/libsolr/api.py", 354, "fields", "raise PopupException(e, title=_('Error while accessing Solr'))"]], "detail": "None", "title": "Error"}

7 REPLIES 7

Re: hue solr csv permission could not fetch

This means Hue could not get the list of field of this collection.

Could you check the logs on the /logs page, it will show the call made to
Solr that failed. It is either something like

http://localhost:8983/solr/nginx_logs2_shard1_replica1/admin/luke?wt=json&indent=true&show=schema

Which Solr are you using?

Romain

Re: hue solr csv permission could not fetch

Contributor

I am using CDH 5.3 parcel 

 

 

4.4.0-cdh5.3.0

 

Response snippet on request


"responseHeader":{
"status":0,
"QTime":8},
"index":{
"numDocs":0,
"maxDoc":0,
"deletedDocs":0,
"version":1,
"segmentCount":0,
"current":true,
"hasDeletions":false,
"directory":"org.apache.lucene.store.NRTCachingDirectory:NRTCachingDirectory(org.apache.solr.store.hdfs.HdfsDirectory@2f871907 lockFactory=org.apache.solr.store.hdfs.HdfsLockFactory@333e6565; maxCacheMB=192.0 maxMergeSizeMB=16.0)",

Re: hue solr csv permission could not fetch

Contributor

I did have 3  solr servers, and I now narrowed it to 1 

The 2 new ones are recent adds and I may not have confirgured hue to see the new solr servers 

 

The index is now loaded

 

Core
startTime:about 10 hours ago
instanceDir:/var/lib/solr/Nginx_logsTest_shard1_replica1/
dataDir:hdfs://hdpnode2:8020/solr/Nginx_logsTest/core_node1/data/
Index
lastModified:-
version:1
numDocs:0
maxDoc:0
deletedDocs:-
optimized:
current:
directory:org.apache.lucene.store.NRTCachingDirectory:​NRTCachingDirectory(org.apache.solr.store.hdfs.HdfsDirectory@​2f871907 lockFactory=org.apache.solr.store.hdfs.HdfsLockFactory@​333e6565; maxCacheMB=192.0 maxMergeSizeMB=16.0)

 

 

 

 

Re: hue solr csv permission could not fetch

Contributor

Now I copied the Apache logs dashboard to a new version

pointed to the new nginx index I created and the dashboard says no data available

 

also I cannot rename the copy of the dashboard to the new name - I tried the editor and type in the new name

but it does not replace

Re: hue solr csv permission could not fetch

You have 0 documents as no data was indexed.

You could provide 2, 3 sanitized rows of you nginx and we will look at
where the indexer is not understanding the format.


About renaming the collection, if you are on Chrome, you might need to
press enter and not the blue ok button sometimes, then click save.

Romain

Re: hue solr csv permission could not fetch

Contributor

sending in personal email

Re: hue solr csv permission could not fetch

New Contributor
have u got solution
Don't have an account?
Coming from Hortonworks? Activate your account here