Hao Chen created KYLIN-1363:
-------------------------------
Summary: 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: v1.2, v2.0
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
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)