[
https://issues.apache.org/jira/browse/NUTCH-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063522#comment-15063522
]
Mohankumar K H commented on NUTCH-2188:
---------------------------------------
Hi,
Thanks for the reply. Can you provide details how to pass the kerberos
authentication to SOLR URL from nutch.
It executes finally this command whle doing the indexing. I took this command
from "/opt/nutch/runtime/deploy/bin/nutch".
hadoop jar /opt/nutch/runtime/deploy/apache-nutch-1.9.job
org.apache.nutch.indexer.IndexingJob -D
solr.server.url=https://hsotname.com:8985/solr/nutch_std_config crawl6/crawldb
-linkdb crawl6/linkdb crawl6/segments/20151217205252
In kerberos we are not going to pass the username and password. We need to
pass as given in below example from cloduera
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/search_using_kerberos.html
Please can you assign some to fix issue ASAP. Its a urgent
> While crawling with solr url (kerberos enabled) Error:
> org.apache.solr.common.SolrException: Unauthorized
> ---------------------------------------------------------------------------------------------------------
>
> Key: NUTCH-2188
> URL: https://issues.apache.org/jira/browse/NUTCH-2188
> Project: Nutch
> Issue Type: Bug
> Affects Versions: 1.9
> Environment: TEST
> Reporter: Mohankumar K H
> Fix For: 1.9
>
>
> 15/12/16 21:49:22 INFO mapreduce.Job: Task Id :
> attempt_1449548680888_0063_r_000002_0, Status : FAILED
> Error: org.apache.solr.common.SolrException: Unauthorized
> Unauthorized
> request:
> https://hdrdn001c.cps.intel.com:8985/solr/nutch_std_config/update?wt=javabin&version=2
> at
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:430)
> at
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
> at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
> at
> org.apache.nutch.indexwriter.solr.SolrIndexWriter.close(SolrIndexWriter.java:155)
> at org.apache.nutch.indexer.IndexWriters.close(IndexWriters.java:118)
> at
> org.apache.nutch.indexer.IndexerOutputFormat$1.close(IndexerOutputFormat.java:44)
> at
> org.apache.hadoop.mapred.ReduceTask$OldTrackingRecordWriter.close(ReduceTask.java:502)
> at
> org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:456)
> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:392)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
> Container killed by the ApplicationMaster.
> Container killed on request. Exit code is 143
> Container exited with a non-zero exit code 143
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)