安装hive
1.配置hive的matestore到HDFS中
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> javax.jdo.option.ConnectionURL jdbc:mysql://192.168.24.100:3306/metastore?createDatabaseIfNotExist=true JDBC connect string for a JDBC metastore javax.jdo.option.ConnectionDriverName com.mysql.jdbc.Driver Driver class name for a JDBC metastore javax.jdo.option.ConnectionUserName root username to use against metastore database javax.jdo.option.ConnectionPassword rootroot password to use against metastore database hive.metastore.schema.verification false hive.cli.print.current.db true 2.配置hive的环境变量 3.解压MySQL的connect.tar包 tar -zxvf mysql-connector-java-5.1.27.tar.gz 4.复制connect.jar包到hive的lib目录 cp mysql-connector-java-5.1.27-bin.jar -d /opt/module/hive/lib/