Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 39255 invoked from network); 17 Mar 2009 19:30:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2009 19:30:13 -0000 Received: (qmail 85221 invoked by uid 500); 17 Mar 2009 19:30:13 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 85196 invoked by uid 500); 17 Mar 2009 19:30:13 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 85185 invoked by uid 99); 17 Mar 2009 19:30:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 12:30:13 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 19:30:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A195234C003 for ; Tue, 17 Mar 2009 12:29:50 -0700 (PDT) Message-ID: <884891957.1237318190549.JavaMail.jira@brutus> Date: Tue, 17 Mar 2009 12:29:50 -0700 (PDT) From: "Ashish Thusoo (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-317) HiveServer can not define its port correctly In-Reply-To: <209521601.1236042596188.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682769#action_12682769 ] Ashish Thusoo commented on HIVE-317: ------------------------------------ +1 Am running test on this. Will check in once the tests succeed. > HiveServer can not define its port correctly > --------------------------------------------- > > Key: HIVE-317 > URL: https://issues.apache.org/jira/browse/HIVE-317 > Project: Hadoop Hive > Issue Type: Bug > Components: Server Infrastructure > Affects Versions: 0.3.0 > Reporter: Min Zhou > Assignee: Min Zhou > Fix For: 0.3.0 > > Attachments: hiveserver.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.