You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shreejay (JIRA)" <ji...@apache.org> on 2015/05/19 02:21:59 UTC

[jira] [Created] (SOLR-7562) ENABLE_REMOTE_JMX_OPTS=true without Host Name specified.

Shreejay created SOLR-7562:
------------------------------

             Summary: ENABLE_REMOTE_JMX_OPTS=true without Host Name specified. 
                 Key: SOLR-7562
                 URL: https://issues.apache.org/jira/browse/SOLR-7562
             Project: Solr
          Issue Type: Improvement
          Components: JMX, scripts and tools
    Affects Versions: 5.1
         Environment: Centos 6.6 
            Reporter: Shreejay
            Priority: Minor


This is not a big issue, but might be confusing for new users if they do not have the hostname set in their servers. 

Steps taken to reproduce the issue:
1) Downloaded solr tar file to /opt folder. 
2)Extract install_solr_service.sh file
{quote} tar xzf solr-5.1.0.tgz solr-5.1.0/bin/install_solr_service.sh --strip-components=2{quote}
3) run install_solr_service.sh file. 
{quote}
sudo bash ./install_solr_service.sh solr-5.1.0.tgz
{quote}
The above step starts solr with default options. 
4) Stop solr - {quote}service solr stop{quote} 
5) Change the JMX options in include folder at /var/solr/solr.in.sh
{quote}
ENABLE_REMOTE_JMX_OPTS="true"
{quote}
6) Start solr again 
{quote}
service solr start 
{quote}
if the host name is not specified in /etc/hosts file, following message is displayed
{quote} 
tail: cannot open `/var/solr/logs/solr' for reading: No such file or directory
tail: no files remaining
{quote}
solr-8983-console.log file in /var/solr/logs shows the following output
{quote}
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: SERVERNAME: SERVERNAME: unknown error
{quote}
The error occurs if the /etc/hosts file does not have an entry for SERVERNAME. 

Setting SOLR_HOST=SERVERNAME in solr.in.sh also does not help. 

Solution:
May be add a message "Make sure server name is defined in /etc/hosts file" when JMX is enabled. 






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org