From issues-return-2628-apmail-kylin-issues-archive=kylin.apache.org@kylin.apache.org Wed Jan 27 14:27:40 2016 Return-Path: X-Original-To: apmail-kylin-issues-archive@minotaur.apache.org Delivered-To: apmail-kylin-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E88C1893D for ; Wed, 27 Jan 2016 14:27:40 +0000 (UTC) Received: (qmail 56458 invoked by uid 500); 27 Jan 2016 14:27:40 -0000 Delivered-To: apmail-kylin-issues-archive@kylin.apache.org Received: (qmail 56424 invoked by uid 500); 27 Jan 2016 14:27:40 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 56391 invoked by uid 99); 27 Jan 2016 14:27:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 14:27:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DB5DF2C1F5C for ; Wed, 27 Jan 2016 14:27:39 +0000 (UTC) Date: Wed, 27 Jan 2016 14:27:39 +0000 (UTC) From: "Hao Chen (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KYLIN-1363) Got "unary operator expected" error when executing "bin/kylin.sh" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hao Chen resolved KYLIN-1363. ----------------------------- Resolution: Resolved > Got "unary operator expected" error when executing "bin/kylin.sh" > ----------------------------------------------------------------- > > Key: KYLIN-1363 > URL: https://issues.apache.org/jira/browse/KYLIN-1363 > Project: Kylin > Issue Type: Bug > Affects Versions: v2.0, v1.2 > Environment: [hdp-sandbox-2.2.4.2-2] > LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch > Distributor ID: CentOS > Description: CentOS release 6.6 (Final) > Release: 6.6 > Codename: Final > Reporter: Hao Chen > Assignee: Hao Chen > > h1. Problem > {code} > [root@sandbox apache-kylin-1.2-bin]# ./bin/kylin.sh > KYLIN_HOME is set to /root/apache-kylin-1.2-bin > ./bin/kylin.sh: line 25: [: ==: unary operator expected > ./bin/kylin.sh: line 96: [: ==: unary operator expected > usage: kylin.sh start or kylin.sh stop > {code} > h1. Root Cause > http://stackoverflow.com/a/13618376 > v1.x: > * https://github.com/apache/kylin/blob/v1.2-release/bin/kylin.sh#L25 > * https://github.com/apache/kylin/blob/v1.2-release/bin/kylin.sh#L96 > v2.x: > * https://github.com/apache/kylin/blob/2.x-staging/build/bin/kylin.sh#L25 > * https://github.com/apache/kylin/blob/2.x-staging/build/bin/kylin.sh#L96 -- This message was sent by Atlassian JIRA (v6.3.4#6332)