Reputation: 3647
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
Reputation: 1953
Edit hosts file. replace hostname to localhost
vim /etc/hosts
127.0.0.1 localhost
Then try again
Upvotes: 1