[
https://issues.apache.org/jira/browse/HIVE-29589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078369#comment-18078369
]
Ayush Saxena commented on HIVE-29589:
-------------------------------------
Committed to master.
Thanx [~abstractdog] for the review!!!
> Fix broken docker setup in non llap mode
> ----------------------------------------
>
> Key: HIVE-29589
> URL: https://issues.apache.org/jira/browse/HIVE-29589
> Project: Hive
> Issue Type: Bug
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
>
> In case of Non LLAP mode the queries fail with
>
> {noformat}
> java.io.IOException: java.lang.IllegalArgumentException: connectionString
> cannot be null or empty
> at
> org.apache.hadoop.hive.ql.exec.tez.TezExternalSessionState.openInternal(TezExternalSessionState.java:122)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:240)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession.open(TezSessionPoolSession.java:102)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezTask.ensureSessionHasResources(TezTask.java:481)
> at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:232)
> at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214)
> at
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:105)
> at org.apache.hadoop.hive.ql.Executor.launchTask(Executor.java:354)
> at org.apache.hadoop.hive.ql.Executor.launchTasks(Executor.java:327)
> at org.apache.hadoop.hive.ql.Executor.runTasks(Executor.java:244)
> at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:105)
> at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:346)
> at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:191)
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:143)
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:138)
> at
> org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:190)
> at
> org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:234)
> at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:334)
> at
> java.base/java.security.AccessController.doPrivileged(AccessController.java:714)
> at java.base/javax.security.auth.Subject.doAs(Subject.java:525)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1953)
> at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:354)
> at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
> at java.base/java.lang.Thread.run(Thread.java:1583)
> Caused by: java.lang.IllegalArgumentException: connectionString cannot be
> null or empty
> at
> org.apache.curator.shaded.com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
> at
> org.apache.curator.ensemble.fixed.FixedEnsembleProvider.<init>(FixedEnsembleProvider.java:53)
> at
> org.apache.curator.ensemble.fixed.FixedEnsembleProvider.<init>(FixedEnsembleProvider.java:42)
> at
> org.apache.curator.framework.CuratorFrameworkFactory$Builder.connectString(CuratorFrameworkFactory.java:251)
> at
> org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:106)
> at
> org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:91)
> at
> org.apache.hadoop.hive.ql.exec.tez.ZookeeperExternalSessionsRegistryClient.init(ZookeeperExternalSessionsRegistryClient.java:69)
> at
> org.apache.hadoop.hive.ql.exec.tez.ZookeeperExternalSessionsRegistryClient.getSession(ZookeeperExternalSessionsRegistryClient.java:96)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezExternalSessionState.openInternal(TezExternalSessionState.java:118)
> ... 26 more{noformat}
> Steps to repro:
>
> Build the latest Apache Hive 4.3.0-SNAPSHOT image like
>
> {noformat}
> ./build.sh -hadoop 3.4.1 -tez 0.10.5 -tez-snapshot 1.0.0-SNAPSHOT {noformat}
> Now Run the queries (1)
>
>
> {noformat}
> ayushsaxena@Q3NW54Y0C5 docker % ./start-hive.sh
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u
> 'jdbc:hive2://localhost:10000/'
> 0: jdbc:hive2://localhost:10000/> create table emp (id int) stored by iceberg;
> 0: jdbc:hive2://localhost:10000/> insert into emp values (1);
> 0: jdbc:hive2://localhost:10000/> select * from emp;{noformat}
> The Insert fails with the above error
>
> Repro (2)
> {noformat}
> export HIVE_VERSION=4.3.0-SNAPSHOT
> docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2
> --name hive4 apache/hive:${HIVE_VERSION}
> docker exec -it hive4 beeline -u 'jdbc:hive2://localhost:10000/'
> 0: jdbc:hive2://localhost:10000/> create table emp (id int) stored by iceberg;
> 0: jdbc:hive2://localhost:10000/> insert into emp values (1);
> 0: jdbc:hive2://localhost:10000/> select * from emp;{noformat}
> The insert fails with above error
--
This message was sent by Atlassian Jira
(v8.20.10#820010)