
laithleo/hive/opt/hive-2.3.9docker build -t laithleo/hive:2.3.9 .
docker pull laithleo/hive:2.3.9
docker run -p 8088:8088 -p ***:*** -it laithleo/hive:2.3.9 /tmp/bootstrap.sh -bash
beeline> !connect jdbc:hive2://localhost:***/; Connecting to jdbc:hive2://localhost:***/; Enter username for jdbc:hive2://localhost:***/: user Enter password for jdbc:hive2://localhost:***/: **** Connected to: Apache Hive (version 2.3.9) Driver: Hive JDBC (version 2.3.9) Transaction isolation: TRANSACTION_REPEATABLE_READ 0: jdbc:hive2://localhost:***/> show databases; OK +----------------+ | database_name | +----------------+ | default | +----------------+ 1 row selected (1.813 seconds) 0: jdbc:hive2://localhost:***/>
You can use one of the provided examples:
0: jdbc:hive2://localhost:***/> CREATE TABLE invites (foo INT, bar STRING) PARTITIONED BY (ds STRING); OK No rows affected (0.822 seconds) 0: jdbc:hive2://localhost:***/> LOAD DATA LOCAL INPATH '/opt/hive-2.3.9/examples/files/kv2.txt' OVERWRITE INTO TABLE invites PARTITION (ds='2008-08-15'); Loading data to table default.invites partition (ds=2008-08-15) OK No rows affected (1.448 seconds) 0: jdbc:hive2://localhost:***/>``` To see some output of your data with select, do: ```0: jdbc:hive2://localhost:***/> select * from invites LIMIT 10; OK +--------------+--------------+-------------+ | invites.foo | invites.bar | invites.ds | +--------------+--------------+-------------+ | 474 | val_475 | 2008-08-15 | | 281 | val_282 | 2008-08-15 | | 179 | val_180 | 2008-08-15 | | 291 | val_292 | 2008-08-15 | | 62 | val_63 | 2008-08-15 | | 271 | val_272 | 2008-08-15 | | 217 | val_218 | 2008-08-15 | | 135 | val_136 | 2008-08-15 | | 167 | val_168 | 2008-08-15 | | 468 | val_469 | 2008-08-15 | +--------------+--------------+-------------+ 10 rows selected (0.257 seconds) 0: jdbc:hive2://localhost:***/>




manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务