[
https://issues.apache.org/jira/browse/SOLR-7562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403742#comment-15403742
]
Dan commented on SOLR-7562:
---------------------------
On debian/ubuntu, enabling this will make the init-script hang for a while,
then fail without explanation and Solr never gets started.
It was only when finding this bugreport, that i found out i had to add the
hostname in /etc/hosts, which isnt there by default on many cloud hosts,
including amazon.
> 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
> Labels: improvement, suggestion
>
> 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.
> Suggestion:
> May be add a message info message when ENABLE_REMOTE_JMX_OPTS=true.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]