[root@node03 impala]# impala-shell
Starting Impala Shell without Kerberos authentication
Connected to node03:21000
Server version: impalad version 2.11.0-cdh5.14.0 RELEASE (build d68206561bce6b26762d62c01a78e6cd27aa7690)
***********************************************************************************
Welcome to the Impala shell.
(Impala Shell v2.11.0-cdh5.14.0 (d682065) built on Sat Jan 6 13:27:16 PST 2018)
Want to know what version of Impala you're connected to? Run the VERSION command to
find out!
***********************************************************************************
[node03:21000]>
2、同步hive元數據
[node03:21000]> invalidate metadata;#同步hive元數據
Query: invalidate metadata
Query submitted at: 2020-04-07 18:19:11 (Coordinator: http://node03:25000)
Query progress can be monitored at: http://node03:25000/query_plan?query_id=7140a7794f1c9c69:939c1de500000000
Fetched 0 row(s)in 4.92s
[node03:21000]> show databases;#查看同步之後的數據庫
uery: show databases
+------------------+----------------------------------------------+
| name | comment |
+------------------+----------------------------------------------+
| _impala_builtins | System database for Impala builtin functions || default | Default Hive database |
+------------------+----------------------------------------------+
Fetched 2 row(s)in 0.01s
3、在impala-shell端創建表
create table if not exists testdata (id Int,
name String
);