hive中的几个参数:元数据配置、仓库位置、打印表字段相关参数

hive仓库位置由以下参数决定,默认位置/user/hive/warehouse:

   
         hive.metastore.warehouse.dir
         /user/hive/warehouse
    

hive中元数据配置:

   
         javax.jdo.option.ConnectionURL
         jdbc:mysql://db01: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
         mysql
         password to use against metastore database
    

    
hive查询打印表字段信息由以下参数保证:

hive.cli.print.header=true

你可能感兴趣的:(大数据,数据库)