chanchal118
chanchal118

Reputation: 3647

Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: while starting solr

I got solr 4.10.4 with a package. When i try to start solr with

bin/solr start

I get this error in file solr-8983-console.log

Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException:

But the host name is in /etc/hosts with entry

127.0.0.1    hostname

I am using ubuntu 14.04 LTS

Here hostname is output from

echo $HOSTNAME

command

Upvotes: 3

Views: 4404

Answers (2)

MikeJRamsey56
MikeJRamsey56

Reputation: 2819

Set property override:

-Djava.net.preferIPv4Stack=false

Upvotes: 1

Vinod
Vinod

Reputation: 1953

Edit hosts file. replace hostname to localhost

vim /etc/hosts

127.0.0.1       localhost

Then try again

Upvotes: 1

Related Questions