HIve view 查询出错
创建/user/admin
su hdfs
hdfs dfs -mkdir /user/admin
hdfs dfs -chown admin:hdfs /user/admin
创建数据库DS_JOBIMPL_11/6
CREATE TABLE DS_JOBIMPL_11 (
DS_id VARCHAR(255) NOT NULL,
DS_applicationId TEXT,
DS_confFile TEXT,
DS_dagId TEXT,
DS_dagName TEXT,
DS_dataBase TEXT,
DS_dateSubmitted BIGINT,
DS_duration BIGINT,
DS_forcedContent TEXT,
DS_globalSettings TEXT,
DS_guid TEXT,
DS_hiveQueryId TEXT,
DS_logFile TEXT,
DS_owner TEXT,
DS_queryFile TEXT,
DS_queryId TEXT,
DS_referrer TEXT,
DS_sessionTag TEXT,
DS_sqlState TEXT,
DS_status TEXT,
DS_statusDir TEXT,
DS_statusMessage TEXT,
DS_title TEXT,
PRIMARY KEY (ds_id));
如果遇到 IP 问题
-
连接到Ambari
-
hdfs服务>高级配置>自定义核心站点并更改此:
hadoop.proxyuser.hive.groups = *
hadoop.proxyuser.hive.hosts = *
hadoop.proxyuser.hcat.groups = *
hadoop.proxyuser.hcat.hosts = *