Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-317

HiveServer can not define its port correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0
    • Server Infrastructure
    • None
    • Reviewed

    Description

      HiveServer.java accept one argument stands for the port of this server, but I found that can not accept this argument.
      By digging into the source code, I found it may caused by these lines of main function.

      if (args.length > 1)

      { port = Integer.getInteger(args[0]); }

      I think they should be:

      if (args.length >= 1)

      { port = Integer.parseInt(args[0]); }

      The author may have some different intention, I think.

      Attachments

        1. hiveserver.patch
          0.7 kB
          Min Zhou

        Activity

          People

            coderplay Min Zhou
            coderplay Min Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: