dengzhhu653 commented on PR #4680:
URL: https://github.com/apache/hive/pull/4680#issuecomment-1751557272

   > I realized that there is a need to export env variable with hadoop 
version, not only pass it to the build script. However it is still not working 
:( Here are the repro steps:
   > 
   > ```
   > export HADOOP_VERSION=3.1.0
   > export HIVE_VERSION=3.1.3
   > export TEZ_VERSION=0.10.1
   > ./build.sh -hadoop 3.1.0 -tez 0.10.1 -hive 3.1.3
   > docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2 
--env SCHEMA_COMMAND=upgradeSchema --name hive3 apache/hive:3.1.3
   > docker logs 
e9e09f7e580f3575fba91531227fd077194d0b009b86aa875db178bd915be6b9
   > ```
   > 
   > And there is still and error msg, however a new one:
   > 
   > ```
   > org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema 
version, Cause:Table/View 'VERSION' does not exist.
   > Use --verbose for detailed stacktrace.
   > *** schemaTool failed ***
   > + '[' 1 -eq 0 ']'
   > + echo 'Schema initialization failed!'
   > + exit 1
   > Schema initialization failed!
   > ```
   
   I think this failure is due to no hive schema is here for upgrading, please 
try with "--env SCHEMA_COMMAND= initSchema" or just ignore this argument, for 
example:
   ```
   docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2 
--name hive3 apache/hive:3.1.3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to