Hi Jens Ok, so you are running it on Hadoop 2 then.
Now if you look at https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/node/internal/InternalSettingsPreparer.java#L114 you'll see that if it does not have a name, it will try to load one randomly from a file (names.txt) and judging by https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/common/Names.java#L45 that file must be empty or non existent. That file names.txt lives in the elasticsearch jar. The explanation that comes to mind is that using Nutch in deployed mode means that this file is not loaded. I have used ES in distributed mode with Hadoop 1.x so it could be that there is a difference in Hadoop 2 (which we do not yet officially support BTW) or a difference with my configuration which would explain why I did not get this issue. HTH Julien On 28 May 2014 12:24, Jens Jahnke <[email protected]> wrote: > Hi Julien, > > On Wed, 28 May 2014 11:33:17 +0100 > Julien Nioche <[email protected]> wrote: > > JN> > I've a simple hadoop setup with a name node and 1 data node. > JN> > JN> no job tracker and task trackers? > > well I also have a yarn resource and node manager running. > > JN> > > JN> > Error: java.lang.IllegalArgumentException: n must be positive > JN> > at java.util.Random.nextInt(Random.java:300) > JN> > at > org.elasticsearch.common.Names.randomNodeName(Names.java:45) > JN> > [...] > JN> > JN> Your problem is not related to Hadoop but has to do with the config of > ES. > JN> What did you specify for the port value? > > I have configured the the port 9300 in nutch-site.xml: > > <property> > <name>elastic.port</name> > <value>9300</value> > </property> > > JN> Try the version in trunk if you can : I committed > JN> https://issues.apache.org/jira/browse/NUTCH-1745 some time ago and it > could > JN> fix this issue > > I just ran the trunk version and got exactly the same error message. :-( > The configuration runs fine in local mode by the way... > > Regards, > > Jens > > -- > 28. Wonnemond 2014, 13:18 > Homepage : http://www.wegtam.com > > Jealousy is all the fun you think they have. > -- Open Source Solutions for Text Engineering http://digitalpebble.blogspot.com/ http://www.digitalpebble.com http://twitter.com/digitalpebble

