Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12611

Ozone: SCM Cli: Use the hostname of SCM server instead of the bind address

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • None
    • ozone
    • None

    Description

      During tests I found that I can't use SCM CLI in multi-node environment:

      2017-10-06 21:00:25 INFO  Client:939 - Retrying connect to server: 0.0.0.0/0.0.0.0:9860. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
      2017-10-06 21:00:26 INFO  Client:939 - Retrying connect to server: 0.0.0.0/0.0.0.0:9860. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
      

      The reason is that we should use the OZONE_SCM_CLIENT_ADDRESS_KEY instead of OZONE_SCM_BIND_HOST_KEY as the bind host could be 0.0.0.0 and the SCM_CLIENT_ADDRESS contains the external address of the SCM server (in my case scm was on a different host)

      Attachments

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: