Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7562

ENABLE_REMOTE_JMX_OPTS=true without Host Name specified.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.1
    • None
    • JMX, scripts and tools
    • Centos 6.6

    Description

      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

      tar xzf solr-5.1.0.tgz solr-5.1.0/bin/install_solr_service.sh --strip-components=2

      3) run install_solr_service.sh file.

      sudo bash ./install_solr_service.sh solr-5.1.0.tgz

      The above step starts solr with default options.
      4) Stop solr -

      service solr stop


      5) Change the JMX options in include folder at /var/solr/solr.in.sh

      ENABLE_REMOTE_JMX_OPTS="true"

      6) Start solr again

      service solr start

      if the host name is not specified in /etc/hosts file, following message is displayed

      tail: cannot open `/var/solr/logs/solr' for reading: No such file or directory
      tail: no files remaining

      solr-8983-console.log file in /var/solr/logs shows the following output

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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shreejay Shreejay
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: