Hi lk,
  First step use SSHClient to run "Create Hive Table" command, so I think
it will not use beeline to connect hive.
  "Redistribute Flat Hive Table" step need to compute row count of flat
table, so it will use beeline to connect if you configured.
   And I see the zookeeper connect string are enclosed in double quotes, is
that a right way?

On Thu, Apr 18, 2019 at 11:04 AM lk_hadoop <[email protected]> wrote:

> hi,all:
>        I'm using kylin-2.6.1-bin-cdh57 , when I connect to hive with
> beelin :
>  kylin.source.hive.beeline-params=-n hive -p hiveadmin --hiveconf
> hive.security.authorization.sqlstd.confwhitelist.append='mapreduce.job.*|dfs.*'
> -u
> jdbc:hive2://"bdp-scm-04:2181,bdp-scm-03:2181,bdp-scm-05:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
>        I got error at step : Redistribute Flat Hive Table
>
>
> java.lang.IllegalArgumentException: Illegal character in path at index 86: 
> hive2://dummyhost:00000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
>       at java.net.URI.create(URI.java:852)
>       at org.apache.hive.jdbc.Utils.parseURL(Utils.java:302)
>       at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:122)
>       at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
>       at java.sql.DriverManager.getConnection(DriverManager.java:664)
>       at java.sql.DriverManager.getConnection(DriverManager.java:208)
>       at 
> org.apache.kylin.source.hive.BeelineHiveClient.init(BeelineHiveClient.java:72)
>       at 
> org.apache.kylin.source.hive.BeelineHiveClient.<init>(BeelineHiveClient.java:66)
>       at 
> org.apache.kylin.source.hive.HiveClientFactory.getHiveClient(HiveClientFactory.java:29)
>       at 
> org.apache.kylin.source.hive.RedistributeFlatHiveTableStep.computeRowCount(RedistributeFlatHiveTableStep.java:40)
>       at 
> org.apache.kylin.source.hive.RedistributeFlatHiveTableStep.doWork(RedistributeFlatHiveTableStep.java:91)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:166)
>       at 
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:71)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:166)
>       at 
> org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:114)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.net.URISyntaxException: Illegal character in path at index 
> 86: 
> hive2://dummyhost:00000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
>       at java.net.URI$Parser.fail(URI.java:2848)
>
>        I don't know why , because I can pass the first step which also use
> the same JDBC URL.
>
> 2019-04-18
> ------------------------------
> lk_hadoop
>

Reply via email to