Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-324

Enforce maximum hostname length

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • External issue ID:
      387
    • Rank:
      1|hzyaxj:

      Description

      Clusters with really long names can cause servers to have overly-long hostnames. We should put a limit on the length of a hostname. Unfortunately, this is dependent on the length of: cluster name + cluster number + node number + DNS suffix. This makes the maximum hostname length == 63 -length(dnsSuffix) + 1 + length(nodeNum) + 1 + length(clusterNum)

      This exposed itself via MySQL when building a cluster.

      [2014-08-15T23:26:05+00:00] ERROR: mysql_database_user[dbuser-2primer-cdap-singlenode-insecure1003-1000.dev.continuuity.net] (hadoop_wrapper::hive_metastore_db_init line 65) had an error: Mysql::Error: String '2primer-cdap-singlenode-insecure1003-1000.dev.continuuity.net' is too long for host name (should be no longer than 60)

      Wikipedia says:
      "Each label must be between 1 and 63 characters long,[2] and the entire hostname (including the delimiting dots) has a maximum of 255 characters."

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chris Chris Gianelloni
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: