杨校老师课题之Hive数据仓库搭建2

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介: 杨校老师课题之Hive数据仓库搭建

杨校老师课题之Hive数据仓库搭建1:https://developer.aliyun.com/article/1543265


  1. 上传MySQL驱动包到 lib目录内

利用rz命令实现上传操作

[root@hadoop1 apache-hive-1.2.2-bin]# ll
总用量 84
drwxr-xr-x. 4 root root   156 4月  23 15:15 bin
drwxr-xr-x. 2 root root   252 4月  23 17:36 conf
-rw-r--r--. 1 root root 21108 4月  23 15:20 derby.log
drwxr-xr-x. 4 root root    34 4月  23 15:14 examples
drwxr-xr-x. 7 root root    68 4月  23 15:14 hcatalog
drwxr-xr-x. 4 root root  8192 4月  23 15:14 lib
-rw-r--r--. 1 root root 24754 3月  31 2017 LICENSE
drwxr-xr-x. 5 root root   133 4月  23 15:20 metastore_db
-rw-r--r--. 1 root root   397 3月  31 2017 NOTICE
-rw-r--r--. 1 root root  4374 4月   1 2017 README.txt
-rw-r--r--. 1 root root  4255 4月   1 2017 RELEASE_NOTES.txt
drwxr-xr-x. 3 root root    23 4月  23 15:14 scripts
[root@hadoop1 apache-hive-1.2.2-bin]# cd lib/
[root@hadoop1 lib]# ll
总用量 93528
-rw-r--r--.  1 root root  4368200 3月  18 2017 accumulo-core-1.6.0.jar
-rw-r--r--.  1 root root   102069 3月  18 2017 accumulo-fate-1.6.0.jar
-rw-r--r--.  1 root root    57420 3月  18 2017 accumulo-start-1.6.0.jar
-rw-r--r--.  1 root root   117409 3月  18 2017 accumulo-trace-1.6.0.jar
-rw-r--r--.  1 root root    62983 3月  18 2017 activation-1.1.jar
-rw-r--r--.  1 root root  1997485 3月  18 2017 ant-1.9.1.jar
-rw-r--r--.  1 root root    18336 3月  18 2017 ant-launcher-1.9.1.jar
-rw-r--r--.  1 root root   445288 3月  18 2017 antlr-2.7.7.jar
-rw-r--r--.  1 root root   164368 3月  18 2017 antlr-runtime-3.4.jar
-rw-r--r--.  1 root root    30359 3月  18 2017 apache-curator-2.6.0.pom
-rw-r--r--.  1 root root   448794 3月  18 2017 apache-log4j-extras-1.2.17.jar
-rw-r--r--.  1 root root    32693 3月  18 2017 asm-commons-3.1.jar
-rw-r--r--.  1 root root    21879 3月  18 2017 asm-tree-3.1.jar
-rw-r--r--.  1 root root   400680 3月  18 2017 avro-1.7.5.jar
-rw-r--r--.  1 root root   110600 3月  18 2017 bonecp-0.8.0.RELEASE.jar
-rw-r--r--.  1 root root   258370 3月  18 2017 calcite-avatica-1.2.0-incubating.jar
-rw-r--r--.  1 root root  3519262 3月  18 2017 calcite-core-1.2.0-incubating.jar
-rw-r--r--.  1 root root   442406 3月  18 2017 calcite-linq4j-1.2.0-incubating.jar
-rw-r--r--.  1 root root   188671 3月  18 2017 commons-beanutils-1.7.0.jar
-rw-r--r--.  1 root root   206035 3月  18 2017 commons-beanutils-core-1.8.0.jar
-rw-r--r--.  1 root root    41123 3月  18 2017 commons-cli-1.2.jar
-rw-r--r--.  1 root root    58160 3月  18 2017 commons-codec-1.4.jar
-rw-r--r--.  1 root root   588337 3月  18 2017 commons-collections-3.2.2.jar
-rw-r--r--.  1 root root    30595 3月  18 2017 commons-compiler-2.7.6.jar
-rw-r--r--.  1 root root   241367 3月  18 2017 commons-compress-1.4.1.jar
-rw-r--r--.  1 root root   298829 3月  18 2017 commons-configuration-1.6.jar
-rw-r--r--.  1 root root   160519 3月  18 2017 commons-dbcp-1.4.jar
-rw-r--r--.  1 root root   143602 3月  18 2017 commons-digester-1.8.jar
-rw-r--r--.  1 root root   279781 3月  18 2017 commons-httpclient-3.0.1.jar
-rw-r--r--.  1 root root   185140 3月  18 2017 commons-io-2.4.jar
-rw-r--r--.  1 root root   284220 3月  18 2017 commons-lang-2.6.jar
-rw-r--r--.  1 root root    62050 3月  18 2017 commons-logging-1.1.3.jar
-rw-r--r--.  1 root root   832410 3月  18 2017 commons-math-2.1.jar
-rw-r--r--.  1 root root    96221 3月  18 2017 commons-pool-1.5.4.jar
-rw-r--r--.  1 root root   415578 3月  18 2017 commons-vfs2-2.0.jar
-rw-r--r--.  1 root root    68866 3月  18 2017 curator-client-2.6.0.jar
-rw-r--r--.  1 root root   185245 3月  18 2017 curator-framework-2.6.0.jar
-rw-r--r--.  1 root root   248171 3月  18 2017 curator-recipes-2.6.0.jar
-rw-r--r--.  1 root root   339666 3月  18 2017 datanucleus-api-jdo-3.2.6.jar
-rw-r--r--.  1 root root  1890075 3月  18 2017 datanucleus-core-3.2.10.jar
-rw-r--r--.  1 root root  1809447 3月  18 2017 datanucleus-rdbms-3.2.9.jar
-rw-r--r--.  1 root root  2838580 3月  18 2017 derby-10.10.2.0.jar
-rw-r--r--.  1 root root    18482 3月  18 2017 eigenbase-properties-1.1.5.jar
-rw-r--r--.  1 root root    12452 3月  18 2017 geronimo-annotation_1.0_spec-1.1.1.jar
-rw-r--r--.  1 root root    30548 3月  18 2017 geronimo-jaspic_1.0_spec-1.0.jar
-rw-r--r--.  1 root root    16030 3月  18 2017 geronimo-jta_1.1_spec-1.1.1.jar
-rw-r--r--.  1 root root  6377448 3月  18 2017 groovy-all-2.1.6.jar
-rw-r--r--.  1 root root  2189117 3月  18 2017 guava-14.0.1.jar
-rw-r--r--.  1 root root    76643 3月  18 2017 hamcrest-core-1.1.jar
-rw-r--r--.  1 root root   121082 4月   3 2017 hive-accumulo-handler-1.2.2.jar
-rw-r--r--.  1 root root    47764 4月   3 2017 hive-ant-1.2.2.jar
-rw-r--r--.  1 root root   138274 4月   3 2017 hive-beeline-1.2.2.jar
-rw-r--r--.  1 root root    38367 4月   3 2017 hive-cli-1.2.2.jar
-rw-r--r--.  1 root root   290835 4月   3 2017 hive-common-1.2.2.jar
-rw-r--r--.  1 root root   120561 4月   3 2017 hive-contrib-1.2.2.jar
-rw-r--r--.  1 root root 20608029 4月   3 2017 hive-exec-1.2.2.jar
-rw-r--r--.  1 root root   114730 4月   3 2017 hive-hbase-handler-1.2.2.jar
-rw-r--r--.  1 root root    27390 4月   3 2017 hive-hwi-1.2.2.jar
-rw-r--r--.  1 root root   100417 4月   3 2017 hive-jdbc-1.2.2.jar
-rw-r--r--.  1 root root 15594358 4月   3 2017 hive-jdbc-1.2.2-standalone.jar
-rw-r--r--.  1 root root  5470775 4月   3 2017 hive-metastore-1.2.2.jar
-rw-r--r--.  1 root root   916566 4月   3 2017 hive-serde-1.2.2.jar
-rw-r--r--.  1 root root  1865061 4月   3 2017 hive-service-1.2.2.jar
-rw-r--r--.  1 root root    32242 4月   3 2017 hive-shims-0.20S-1.2.2.jar
-rw-r--r--.  1 root root    59903 4月   3 2017 hive-shims-0.23-1.2.2.jar
-rw-r--r--.  1 root root     8966 4月   3 2017 hive-shims-1.2.2.jar
-rw-r--r--.  1 root root   109178 4月   3 2017 hive-shims-common-1.2.2.jar
-rw-r--r--.  1 root root    13084 4月   3 2017 hive-shims-scheduler-1.2.2.jar
-rw-r--r--.  1 root root    14524 4月   3 2017 hive-testutils-1.2.2.jar
-rw-r--r--.  1 root root   719304 3月  18 2017 httpclient-4.4.jar
-rw-r--r--.  1 root root   321639 3月  18 2017 httpcore-4.4.jar
-rw-r--r--.  1 root root  1282424 3月  18 2017 ivy-2.4.0.jar
-rw-r--r--.  1 root root   611863 3月  18 2017 janino-2.7.6.jar
-rw-r--r--.  1 root root    60527 3月  18 2017 jcommander-1.32.jar
-rw-r--r--.  1 root root   201124 3月  18 2017 jdo-api-3.0.1.jar
-rw-r--r--.  1 root root  1681148 3月  18 2017 jetty-all-7.6.0.v20120127.jar
-rw-r--r--.  1 root root  1683027 3月  18 2017 jetty-all-server-7.6.0.v20120127.jar
-rw-r--r--.  1 root root   213854 3月  18 2017 jline-2.12.jar
-rw-r--r--.  1 root root   588001 3月  18 2017 joda-time-2.5.jar
-rw-r--r--.  1 root root    12131 3月  18 2017 jpam-1.1.jar
-rw-r--r--.  1 root root    45944 3月  18 2017 json-20090211.jar
-rw-r--r--.  1 root root    33031 3月  18 2017 jsr305-3.0.0.jar
-rw-r--r--.  1 root root    15071 3月  18 2017 jta-1.1.jar
-rw-r--r--.  1 root root   245039 3月  18 2017 junit-4.11.jar
-rw-r--r--.  1 root root   313686 3月  18 2017 libfb303-0.9.2.jar
-rw-r--r--.  1 root root   227712 3月  18 2017 libthrift-0.9.2.jar
-rw-r--r--.  1 root root   481535 3月  18 2017 log4j-1.2.16.jar
-rw-r--r--.  1 root root   447676 3月  18 2017 mail-1.4.1.jar
-rw-r--r--.  1 root root    94421 3月  18 2017 maven-scm-api-1.4.jar
-rw-r--r--.  1 root root    40066 3月  18 2017 maven-scm-provider-svn-commons-1.4.jar
-rw-r--r--.  1 root root    69858 3月  18 2017 maven-scm-provider-svnexe-1.4.jar
-rw-r--r--.  1 root root  1208356 3月  18 2017 netty-3.7.0.Final.jar
-rw-r--r--.  1 root root    19827 3月  18 2017 opencsv-2.3.jar
-rw-r--r--.  1 root root    65261 3月  18 2017 oro-2.0.8.jar
-rw-r--r--.  1 root root    29555 3月  18 2017 paranamer-2.3.jar
-rw-r--r--.  1 root root  2796935 3月  18 2017 parquet-hadoop-bundle-1.6.0.jar
-rw-r--r--.  1 root root    48557 3月  18 2017 pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
drwxr-xr-x.  6 root root      104 4月  23 15:14 php
-rw-r--r--.  1 root root   250546 3月  18 2017 plexus-utils-1.5.6.jar
drwxr-xr-x. 10 root root      150 4月  23 15:14 py
-rw-r--r--.  1 root root    25429 3月  18 2017 regexp-1.3.jar
-rw-r--r--.  1 root root   105112 3月  18 2017 servlet-api-2.5.jar
-rw-r--r--.  1 root root  1251514 3月  18 2017 snappy-java-1.0.5.jar
-rw-r--r--.  1 root root   236660 3月  18 2017 ST4-4.0.4.jar
-rw-r--r--.  1 root root    26514 3月  18 2017 stax-api-1.0.1.jar
-rw-r--r--.  1 root root   148627 3月  18 2017 stringtemplate-3.2.1.jar
-rw-r--r--.  1 root root    93210 3月  18 2017 super-csv-2.2.0.jar
-rw-r--r--.  1 root root    55953 3月  18 2017 tempus-fugit-1.1.jar
-rw-r--r--.  1 root root   392124 3月  18 2017 velocity-1.5.jar
-rw-r--r--.  1 root root    94672 3月  18 2017 xz-1.0.jar
-rw-r--r--.  1 root root   792964 3月  18 2017 zookeeper-3.4.6.jar
[root@hadoop1 lib]# rz -E
rz waiting to receive.
[root@hadoop1 lib]# ll
总用量 94512
-rw-r--r--.  1 root root  4368200 3月  18 2017 accumulo-core-1.6.0.jar
-rw-r--r--.  1 root root   102069 3月  18 2017 accumulo-fate-1.6.0.jar
-rw-r--r--.  1 root root    57420 3月  18 2017 accumulo-start-1.6.0.jar
-rw-r--r--.  1 root root   117409 3月  18 2017 accumulo-trace-1.6.0.jar
-rw-r--r--.  1 root root    62983 3月  18 2017 activation-1.1.jar
-rw-r--r--.  1 root root  1997485 3月  18 2017 ant-1.9.1.jar
-rw-r--r--.  1 root root    18336 3月  18 2017 ant-launcher-1.9.1.jar
-rw-r--r--.  1 root root   445288 3月  18 2017 antlr-2.7.7.jar
-rw-r--r--.  1 root root   164368 3月  18 2017 antlr-runtime-3.4.jar
-rw-r--r--.  1 root root    30359 3月  18 2017 apache-curator-2.6.0.pom
-rw-r--r--.  1 root root   448794 3月  18 2017 apache-log4j-extras-1.2.17.jar
-rw-r--r--.  1 root root    32693 3月  18 2017 asm-commons-3.1.jar
-rw-r--r--.  1 root root    21879 3月  18 2017 asm-tree-3.1.jar
-rw-r--r--.  1 root root   400680 3月  18 2017 avro-1.7.5.jar
-rw-r--r--.  1 root root   110600 3月  18 2017 bonecp-0.8.0.RELEASE.jar
-rw-r--r--.  1 root root   258370 3月  18 2017 calcite-avatica-1.2.0-incubating.jar
-rw-r--r--.  1 root root  3519262 3月  18 2017 calcite-core-1.2.0-incubating.jar
-rw-r--r--.  1 root root   442406 3月  18 2017 calcite-linq4j-1.2.0-incubating.jar
-rw-r--r--.  1 root root   188671 3月  18 2017 commons-beanutils-1.7.0.jar
-rw-r--r--.  1 root root   206035 3月  18 2017 commons-beanutils-core-1.8.0.jar
-rw-r--r--.  1 root root    41123 3月  18 2017 commons-cli-1.2.jar
-rw-r--r--.  1 root root    58160 3月  18 2017 commons-codec-1.4.jar
-rw-r--r--.  1 root root   588337 3月  18 2017 commons-collections-3.2.2.jar
-rw-r--r--.  1 root root    30595 3月  18 2017 commons-compiler-2.7.6.jar
-rw-r--r--.  1 root root   241367 3月  18 2017 commons-compress-1.4.1.jar
-rw-r--r--.  1 root root   298829 3月  18 2017 commons-configuration-1.6.jar
-rw-r--r--.  1 root root   160519 3月  18 2017 commons-dbcp-1.4.jar
-rw-r--r--.  1 root root   143602 3月  18 2017 commons-digester-1.8.jar
-rw-r--r--.  1 root root   279781 3月  18 2017 commons-httpclient-3.0.1.jar
-rw-r--r--.  1 root root   185140 3月  18 2017 commons-io-2.4.jar
-rw-r--r--.  1 root root   284220 3月  18 2017 commons-lang-2.6.jar
-rw-r--r--.  1 root root    62050 3月  18 2017 commons-logging-1.1.3.jar
-rw-r--r--.  1 root root   832410 3月  18 2017 commons-math-2.1.jar
-rw-r--r--.  1 root root    96221 3月  18 2017 commons-pool-1.5.4.jar
-rw-r--r--.  1 root root   415578 3月  18 2017 commons-vfs2-2.0.jar
-rw-r--r--.  1 root root    68866 3月  18 2017 curator-client-2.6.0.jar
-rw-r--r--.  1 root root   185245 3月  18 2017 curator-framework-2.6.0.jar
-rw-r--r--.  1 root root   248171 3月  18 2017 curator-recipes-2.6.0.jar
-rw-r--r--.  1 root root   339666 3月  18 2017 datanucleus-api-jdo-3.2.6.jar
-rw-r--r--.  1 root root  1890075 3月  18 2017 datanucleus-core-3.2.10.jar
-rw-r--r--.  1 root root  1809447 3月  18 2017 datanucleus-rdbms-3.2.9.jar
-rw-r--r--.  1 root root  2838580 3月  18 2017 derby-10.10.2.0.jar
-rw-r--r--.  1 root root    18482 3月  18 2017 eigenbase-properties-1.1.5.jar
-rw-r--r--.  1 root root    12452 3月  18 2017 geronimo-annotation_1.0_spec-1.1.1.jar
-rw-r--r--.  1 root root    30548 3月  18 2017 geronimo-jaspic_1.0_spec-1.0.jar
-rw-r--r--.  1 root root    16030 3月  18 2017 geronimo-jta_1.1_spec-1.1.1.jar
-rw-r--r--.  1 root root  6377448 3月  18 2017 groovy-all-2.1.6.jar
-rw-r--r--.  1 root root  2189117 3月  18 2017 guava-14.0.1.jar
-rw-r--r--.  1 root root    76643 3月  18 2017 hamcrest-core-1.1.jar
-rw-r--r--.  1 root root   121082 4月   3 2017 hive-accumulo-handler-1.2.2.jar
-rw-r--r--.  1 root root    47764 4月   3 2017 hive-ant-1.2.2.jar
-rw-r--r--.  1 root root   138274 4月   3 2017 hive-beeline-1.2.2.jar
-rw-r--r--.  1 root root    38367 4月   3 2017 hive-cli-1.2.2.jar
-rw-r--r--.  1 root root   290835 4月   3 2017 hive-common-1.2.2.jar
-rw-r--r--.  1 root root   120561 4月   3 2017 hive-contrib-1.2.2.jar
-rw-r--r--.  1 root root 20608029 4月   3 2017 hive-exec-1.2.2.jar
-rw-r--r--.  1 root root   114730 4月   3 2017 hive-hbase-handler-1.2.2.jar
-rw-r--r--.  1 root root    27390 4月   3 2017 hive-hwi-1.2.2.jar
-rw-r--r--.  1 root root   100417 4月   3 2017 hive-jdbc-1.2.2.jar
-rw-r--r--.  1 root root 15594358 4月   3 2017 hive-jdbc-1.2.2-standalone.jar
-rw-r--r--.  1 root root  5470775 4月   3 2017 hive-metastore-1.2.2.jar
-rw-r--r--.  1 root root   916566 4月   3 2017 hive-serde-1.2.2.jar
-rw-r--r--.  1 root root  1865061 4月   3 2017 hive-service-1.2.2.jar
-rw-r--r--.  1 root root    32242 4月   3 2017 hive-shims-0.20S-1.2.2.jar
-rw-r--r--.  1 root root    59903 4月   3 2017 hive-shims-0.23-1.2.2.jar
-rw-r--r--.  1 root root     8966 4月   3 2017 hive-shims-1.2.2.jar
-rw-r--r--.  1 root root   109178 4月   3 2017 hive-shims-common-1.2.2.jar
-rw-r--r--.  1 root root    13084 4月   3 2017 hive-shims-scheduler-1.2.2.jar
-rw-r--r--.  1 root root    14524 4月   3 2017 hive-testutils-1.2.2.jar
-rw-r--r--.  1 root root   719304 3月  18 2017 httpclient-4.4.jar
-rw-r--r--.  1 root root   321639 3月  18 2017 httpcore-4.4.jar
-rw-r--r--.  1 root root  1282424 3月  18 2017 ivy-2.4.0.jar
-rw-r--r--.  1 root root   611863 3月  18 2017 janino-2.7.6.jar
-rw-r--r--.  1 root root    60527 3月  18 2017 jcommander-1.32.jar
-rw-r--r--.  1 root root   201124 3月  18 2017 jdo-api-3.0.1.jar
-rw-r--r--.  1 root root  1681148 3月  18 2017 jetty-all-7.6.0.v20120127.jar
-rw-r--r--.  1 root root  1683027 3月  18 2017 jetty-all-server-7.6.0.v20120127.jar
-rw-r--r--.  1 root root   213854 3月  18 2017 jline-2.12.jar
-rw-r--r--.  1 root root   588001 3月  18 2017 joda-time-2.5.jar
-rw-r--r--.  1 root root    12131 3月  18 2017 jpam-1.1.jar
-rw-r--r--.  1 root root    45944 3月  18 2017 json-20090211.jar
-rw-r--r--.  1 root root    33031 3月  18 2017 jsr305-3.0.0.jar
-rw-r--r--.  1 root root    15071 3月  18 2017 jta-1.1.jar
-rw-r--r--.  1 root root   245039 3月  18 2017 junit-4.11.jar
-rw-r--r--.  1 root root   313686 3月  18 2017 libfb303-0.9.2.jar
-rw-r--r--.  1 root root   227712 3月  18 2017 libthrift-0.9.2.jar
-rw-r--r--.  1 root root   481535 3月  18 2017 log4j-1.2.16.jar
-rw-r--r--.  1 root root   447676 3月  18 2017 mail-1.4.1.jar
-rw-r--r--.  1 root root    94421 3月  18 2017 maven-scm-api-1.4.jar
-rw-r--r--.  1 root root    40066 3月  18 2017 maven-scm-provider-svn-commons-1.4.jar
-rw-r--r--.  1 root root    69858 3月  18 2017 maven-scm-provider-svnexe-1.4.jar
-rw-r--r--.  1 root root  1006904 4月  23 09:04 mysql-connector-java-5.1.49.jar
-rw-r--r--.  1 root root  1208356 3月  18 2017 netty-3.7.0.Final.jar
-rw-r--r--.  1 root root    19827 3月  18 2017 opencsv-2.3.jar
-rw-r--r--.  1 root root    65261 3月  18 2017 oro-2.0.8.jar
-rw-r--r--.  1 root root    29555 3月  18 2017 paranamer-2.3.jar
-rw-r--r--.  1 root root  2796935 3月  18 2017 parquet-hadoop-bundle-1.6.0.jar
-rw-r--r--.  1 root root    48557 3月  18 2017 pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
drwxr-xr-x.  6 root root      104 4月  23 15:14 php
-rw-r--r--.  1 root root   250546 3月  18 2017 plexus-utils-1.5.6.jar
drwxr-xr-x. 10 root root      150 4月  23 15:14 py
-rw-r--r--.  1 root root    25429 3月  18 2017 regexp-1.3.jar
-rw-r--r--.  1 root root   105112 3月  18 2017 servlet-api-2.5.jar
-rw-r--r--.  1 root root  1251514 3月  18 2017 snappy-java-1.0.5.jar
-rw-r--r--.  1 root root   236660 3月  18 2017 ST4-4.0.4.jar
-rw-r--r--.  1 root root    26514 3月  18 2017 stax-api-1.0.1.jar
-rw-r--r--.  1 root root   148627 3月  18 2017 stringtemplate-3.2.1.jar
-rw-r--r--.  1 root root    93210 3月  18 2017 super-csv-2.2.0.jar
-rw-r--r--.  1 root root    55953 3月  18 2017 tempus-fugit-1.1.jar
-rw-r--r--.  1 root root   392124 3月  18 2017 velocity-1.5.jar
-rw-r--r--.  1 root root    94672 3月  18 2017 xz-1.0.jar
-rw-r--r--.  1 root root   792964 3月  18 2017 zookeeper-3.4.6.jar

  1. 完成,运行!

# 是在/usr/local/hive/apache-hive-1.2.2-bin/bin 下执行的hive开启
[root@hadoop1 bin]# ./hive

Logging initialized using configuration in jar:file:/usr/local/hive/apache-hive-1.2.2-bin/lib/hive-common-1.2.2.jar!/hive-log4j.properties
Sat Apr 23 17:43:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:49 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:49 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:49 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:43:49 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
hive> show databases;
OK
default
Time taken: 0.65 seconds, Fetched: 1 row(s)
hive> create database hive_book;
OK
Time taken: 0.199 seconds
hive> show databases;
OK
default
hive_book
Time taken: 0.01 seconds, Fetched: 2 row(s)
hive> 

[root@hadoop1 ~]# cd /usr/local/hive/apache-hive-1.2.2-bin/

# 是在/usr/local/hive/apache-hive-1.2.2-bin/ 下执行的hive开启
[root@hadoop1 apache-hive-1.2.2-bin]# bin/hive

Logging initialized using configuration in jar:file:/usr/local/hive/apache-hive-1.2.2-bin/lib/hive-common-1.2.2.jar!/hive-log4j.properties
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Sat Apr 23 17:44:48 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
hive> show databases;
OK
default
hive_book
Time taken: 0.63 seconds, Fetched: 2 row(s)
hive> 

总结说明:

Hive利用MySQL进行存储元数据【MetaStore】

内置函数查询
hive> show functions;
OK
!
!=
%
&
*
+
-
/
<
<=
<=>
<>
=
==
>
>=
^
abs
acos
add_months
and
array
array_contains
ascii
asin
assert_true
atan
avg
base64
between
bin
case
cbrt
ceil
ceiling
coalesce
collect_list
collect_set
compute_stats
concat
concat_ws
context_ngrams
conv
corr
cos
count
covar_pop
covar_samp
create_union
cume_dist
current_database
current_date
current_timestamp
current_user
date_add
date_format
date_sub
datediff
day
dayofmonth
decode
degrees
dense_rank
div
e
elt
encode
ewah_bitmap
ewah_bitmap_and
ewah_bitmap_empty
ewah_bitmap_or
exp
explode
factorial
field
find_in_set
first_value
floor
format_number
from_unixtime
from_utc_timestamp
get_json_object
greatest
hash
hex
histogram_numeric
hour
if
in
in_file
index
initcap
inline
instr
isnotnull
isnull
java_method
json_tuple
lag
last_day
last_value
lcase
lead
least
length
levenshtein
like
ln
locate
log
log10
log2
lower
lpad
ltrim
map
map_keys
map_values
matchpath
max
min
minute
month
months_between
named_struct
negative
next_day
ngrams
noop
noopstreaming
noopwithmap
noopwithmapstreaming
not
ntile
nvl
or
parse_url
parse_url_tuple
percent_rank
percentile
percentile_approx
pi
pmod
posexplode
positive
pow
power
printf
radians
rand
rank
reflect
reflect2
regexp
regexp_extract
regexp_replace
repeat
reverse
rlike
round
row_number
rpad
rtrim
second
sentences
shiftleft
shiftright
shiftrightunsigned
sign
sin
size
sort_array
soundex
space
split
sqrt
stack
std
stddev
stddev_pop
stddev_samp
str_to_map
struct
substr
substring
sum
tan
to_date
to_unix_timestamp
to_utc_timestamp
translate
trim
trunc
ucase
unbase64
unhex
unix_timestamp
upper
var_pop
var_samp
variance
weekofyear
when
windowingtablefunction
xpath
xpath_boolean
xpath_double
xpath_float
xpath_int
xpath_long
xpath_number
xpath_short
xpath_string
year
|
~
Time taken: 0.018 seconds, Fetched: 216 row(s)

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
4月前
|
SQL 存储 分布式计算
Hive数据仓库设计与优化策略:面试经验与必备知识点解析
本文深入探讨了Hive数据仓库设计原则(分区、分桶、存储格式选择)与优化策略(SQL优化、内置优化器、统计信息、配置参数调整),并分享了面试经验及常见问题,如Hive与RDBMS的区别、实际项目应用和与其他组件的集成。通过代码样例,帮助读者掌握Hive核心技术,为面试做好充分准备。
352 0
|
3月前
|
SQL 存储 关系型数据库
杨校老师课题之Hive数据仓库搭建1
杨校老师课题之Hive数据仓库搭建
62 0
|
4月前
|
SQL 分布式计算 关系型数据库
【数据仓库与联机分析处理】数据仓库工具Hive
【数据仓库与联机分析处理】数据仓库工具Hive
94 6
|
4月前
|
SQL 存储 分布式计算
基于Hadoop数据仓库Hive1.2部署及使用
基于Hadoop数据仓库Hive1.2部署及使用
|
4月前
|
存储 SQL 分布式计算
【Hive】为什么要对数据仓库分层?
【4月更文挑战第15天】【Hive】为什么要对数据仓库分层?
|
4月前
|
SQL HIVE
Hive【Hive学习大纲】【数据仓库+简介+工作原理】【自学阶段整理的xmind思维导图分享】【点击可放大看高清】
【4月更文挑战第6天】Hive【Hive学习大纲】【数据仓库+简介+工作原理】【自学阶段整理的xmind思维导图分享】【点击可放大看高清】
64 0
|
24天前
|
存储 缓存 Cloud Native
MPP架构数据仓库使用问题之ADB PG云原生版本的扩缩容性能怎么样
MPP架构数据仓库使用问题之ADB PG云原生版本的扩缩容性能怎么样
MPP架构数据仓库使用问题之ADB PG云原生版本的扩缩容性能怎么样
|
2月前
|
SQL Cloud Native 关系型数据库
云原生数据仓库使用问题之分组优化如何实现
阿里云AnalyticDB提供了全面的数据导入、查询分析、数据管理、运维监控等功能,并通过扩展功能支持与AI平台集成、跨地域复制与联邦查询等高级应用场景,为企业构建实时、高效、可扩展的数据仓库解决方案。以下是对AnalyticDB产品使用合集的概述,包括数据导入、查询分析、数据管理、运维监控、扩展功能等方面。
|
2月前
|
Cloud Native 关系型数据库 OLAP
云原生数据仓库操作报错合集之遇到“table does not exist”错误,该怎么办
阿里云AnalyticDB提供了全面的数据导入、查询分析、数据管理、运维监控等功能,并通过扩展功能支持与AI平台集成、跨地域复制与联邦查询等高级应用场景,为企业构建实时、高效、可扩展的数据仓库解决方案。以下是对AnalyticDB产品使用合集的概述,包括数据导入、查询分析、数据管理、运维监控、扩展功能等方面。
|
2月前
|
SQL Cloud Native 关系型数据库
云原生数据仓库操作报错合集之遇到报错“DDL forbidden because backupTask is doing snapshot”如何处理
阿里云AnalyticDB提供了全面的数据导入、查询分析、数据管理、运维监控等功能,并通过扩展功能支持与AI平台集成、跨地域复制与联邦查询等高级应用场景,为企业构建实时、高效、可扩展的数据仓库解决方案。以下是对AnalyticDB产品使用合集的概述,包括数据导入、查询分析、数据管理、运维监控、扩展功能等方面。

热门文章

最新文章