Bootstrap

【Hive ERROR】Error: Syntax error: Encountered “<EOF>“ at line 1, column 64. (state=42X01,code=30000)

在搭建hive时,进行最后一步初始化出现了下面的错误

Initialization script hive-schema-2.3.0.mysql.sql
Error: Syntax error: Encountered "<EOF>" at line 1, column 64. (state=42X01,code=30000)
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
Underlying cause: java.io.IOException : Schema script failed, errorcode 2
Use --verbose for detailed stacktrace.

思路
先检查hive-site.xml中的拼写,格式是否正确
拼写正确就在配置文件的最后添加下述配置属性

  <property>
  <name>hive.metastore.schema.verification</name>
  <value>false</value>
  </property>
;