Edward Visel created DRILL-7691:
-----------------------------------

             Summary: Errors from drillbit.sh and drill-conf on Mac
                 Key: DRILL-7691
                 URL: https://issues.apache.org/jira/browse/DRILL-7691
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.17.0
         Environment: - OS: macOS Mojave 10.14.6
 - Drill: 1.17.0 (homebrew)
 - ZooKeeper: 3.5.7 (homebrew)
 - Java: 1.8.0_202
            Reporter: Edward Visel


As DRILL-6354 and DRILL-6508 have not been resolved, there are still syntax 
errors in {{drillbit.sh}} on Mac:

{code:bash}
$ drillbit.sh start
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
Starting drillbit, logging to /usr/local/drill/log/drillbit.out
{code}


It looks like Drill still starts, though waiting a bit and checking reveals

{code:bash}
drillbit.sh status
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/Cellar/apache-drill/1.17.0/libexec/bin/drill-config.sh: line 144: 
let: lineCount=: syntax error: operand expected (error token is "=")
/usr/local/drill/drillbit.pid file is present but drillbit is not running.
{code}

and consequently {{drill-conf}} fails for me presently:

{code:bash}
$ drill-conf
Error: Failure in connecting to Drill: org.apache.drill.exec.rpc.RpcException: 
Failure setting up ZK for client. (state=,code=0)
java.sql.SQLNonTransientConnectionException: Failure in connecting to Drill: 
org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client.
        at 
org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:178)
        at 
org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67)
        at 
org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:67)
        at 
org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:138)
        at org.apache.drill.jdbc.Driver.connect(Driver.java:75)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:135)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
        at sqlline.Commands.connect(Commands.java:1364)
        at sqlline.Commands.connect(Commands.java:1244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:730)
        at sqlline.SqlLine.initArgs(SqlLine.java:410)
        at sqlline.SqlLine.begin(SqlLine.java:515)
        at sqlline.SqlLine.start(SqlLine.java:267)
        at sqlline.SqlLine.main(SqlLine.java:206)
Caused by: org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for 
client.
        at 
org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:340)
        at 
org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:169)
        ... 18 more
Caused by: java.io.IOException: Failure to connect to the zookeeper cluster 
service within the allotted time of 10000 milliseconds.
        at 
org.apache.drill.exec.coord.zk.ZKClusterCoordinator.start(ZKClusterCoordinator.java:134)
        at 
org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:338)
        ... 19 more
Apache Drill 1.17.0
"Say hello to my little Drill."
apache drill>
{code}

The syntax and connection errors may be unrelated, but all this worked on 
1.16.0, I believe. My ZooKeeper is a minor version out-of-date which might 
explain the connection errors, but not the syntax ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to