[ 
https://issues.apache.org/jira/browse/FLINK-14736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973900#comment-16973900
 ] 

Rui Li commented on FLINK-14736:
--------------------------------

According to the log, client is able to connect to HMS but failed to get the 
table.
[~wind_ljy] could you check your HMS log to see if there's any errors? The 
following is an example of my local HMS showing a get_table operation is 
processed:
{noformat}
2019-11-14T10:55:00,158  INFO [pool-7-thread-1] HiveMetaStore.audit: ugi=lirui  
ip=127.0.0.1    cmd=source:127.0.0.1 get_table : db=default tbl=foo
{noformat}

> Fail to connect Hive metastore
> ------------------------------
>
>                 Key: FLINK-14736
>                 URL: https://issues.apache.org/jira/browse/FLINK-14736
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>    Affects Versions: 1.9.0
>            Reporter: Jiayi Liao
>            Assignee: Terry Wang
>            Priority: Major
>             Fix For: 1.10.0
>
>         Attachments: hivelog
>
>
> I created a very simple flink program using hive connector. According to 
> logs, it seems that the program failed to connect hive metastore but it's 
> okay with Spark on the same machine. 
> Codes:
> {code:java}
> val fbEnv = ExecutionEnvironment.getExecutionEnvironment
> fbEnv.setParallelism(10);
> val fbTableEnv = BatchTableEnvironment.create(fbEnv)
> val hiveCatalog = new HiveCatalog("hive", null, 
> "/data00/tiger/spark_deploy/spark-stable/conf", "1.2.1")
> fbTableEnv.registerCatalog("hive", hiveCatalog)
> fbTableEnv.useCatalog("hive")
> val testTable = fbTableEnv.sqlQuery("select count(1) from 
> ies_antispam_test.big_graph_white_seeds_20191101_lxb")
> val dataSet = fbTableEnv.toDataSet[Row](testTable)
> dataSet.print()
> fbTableEnv.execute("Hive Query");
> {code}
>  



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

Reply via email to