Error occurs when hive initializes metadata: FUNCTION 'NUCLEUS_ASCII' already exists solution

Error occurs when hive initializes metadata: FUNCTION 'NUCLEUS_ASCII' already exists solution

When executing schematool --initSchema -dbType derby, the following error message appears:

As shown in the figure:
Insert image description here
Solution:
Find the metastore_db file and modify it to metastore_db.tmp

Execute schematool --initSchema -dbType derby again to initialize successfully.

Note: Generally speaking, metastore_db is in the hive directory, but like me, there may be no metastore_db file in the hive path.
Insert image description here
After that, I found metastore_db in the root directory. If you do not find the file in the hive directory, you can go there again. Browse through other directories, find it and change it to metastore_db.tmp. I wish you all the best in your studies!

Guess you like

Origin blog.csdn.net/qq_45263520/article/details/123615187