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

HiveServer can not define its port correctly

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment