{"rsdb":{"rid":"309130","subhead":"","postdate":"0","aid":"224292","fid":"117","uid":"1","topic":"1","content":"
\n
\n \n <\/use>\n <\/svg>\n \n \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002 https:\/\/blog.csdn.net\/qq_16633405\/article\/details\/78290538 <\/div>\n \n
\n \n \n <\/path>\n <\/svg>\n

\u5b89\u88c5\u4e2aHive\u771f\u4e0d\u7701\u5fc3\uff0c\u5404\u79cd\u95ee\u9898\u3002\u6700\u8fd1\u5b89\u88c5\u597dHive\u540e\u6267\u884cHive\u8bed\u53e5\u65f6\u78b0\u5230\u8fd9\u6837\u7684\u9519\u8bef\uff1a<\/p>\n\n\n\n

hive> show databases;\nFAILED: Error in<\/span> metadata: java<\/a>x.jdo.JDOFatalDataStoreException: Access denied for<\/span> user 'root'<\/span>@'localhost'<\/span> (using<\/span> password: YES)\nNestedThrowables:\njava<\/a>.sql.SQLException: Access denied for<\/span> user 'root'<\/span>@'localhost'<\/span> (using<\/span> password: YES)\nFAILED: Execution Error, return<\/span> code 1<\/span> from<\/span> org.apache.hadoop.hive.ql.exec.DDLTask<\/code><\/pre>\n\n

\u4ece\u5b57\u9762\u770b\u662froot\u7528\u6237\u8bbf\u95ee\u6743\u9650\u88ab\u62d2\u7edd\u3002\u90a3\u4e48\u4e5f\u5c31\u662f\u4ee5\u4e0b\u4e24\u4e2a\u539f\u56e0\u9020\u6210\u7684\uff1a
\n1\u3001root\u7528\u6237\u672c\u8eab\u7684\u8bbe\u7f6e\u95ee\u9898\u3002
\n2\u3001mysql\u6743\u9650\u8bbf\u95ee\u95ee\u9898\u3002
\n\u9996\u5148\u6392\u9664\u539f\u56e02\uff1a\u770b\u662f\u5426\u7531\u4e8eMysql\u672a\u5bf9root\u7528\u6237\u8bbe\u7f6e\u8bbf\u95ee\u6743\u9650\u9020\u6210\u7684\u3002<\/p>\n\n

\u5728Mysql\u8fdb\u884c\u6388\u6743\uff1a
\n \u6253\u5f00mysql\u6267\u884c\u4e0b\u9762\u8bed\u53e5\uff08\u7b2c\u4e00\u4e2a\u5355\u5f15\u53f7\u4e2d\u7684root\u4ee3\u8868\u7684\u662fmysql\u7684root\u7528\u6237\uff0c\u7b2c\u4e09\u4e2a\u5355\u5f15\u53f7\u4e2d\u662f\u8981\u8f93\u5165\u7684root\u7528\u6237\u7684\u767b\u5f55\u5bc6\u7801<\u6211\u8fd9\u91cc\u662f\u521d\u59cb\u767b\u5f55\u5bc6\u7801\u4e3a\u7a7a>\u3002\uff09<\/p>\n\n

 mysql><\/span> GRANT ALL<\/span> PRIVILEGES ON<\/span> *<\/span>.<\/span>*<\/span> TO<\/span> 'root'<\/span>@'localhost'<\/span> IDENTIFIED BY<\/span> ''<\/span> WITH<\/span> GRANT OPTION;<\/code><\/pre>\n\n

\u4e4b\u540e\u518d\u6267\u884c\u4ee5\u4e0b\u8bed\u53e5\u8ba9\u6388\u6743\u751f\u6548\uff1a<\/p>\n\n\n\n

FLUSH PRIVILEGES;<\/code><\/pre>\n\n

\u4f46\u662f\u53d1\u73b0\u95ee\u9898\u4f9d\u65e7\u5b58\u5728\u3002
\n\u63a5\u7740\u518d\u6392\u9664\u539f\u56e01\uff1a\u770b\u662f\u591f\u662froot\u7528\u6237\u7684\u8bbe\u7f6e\u95ee\u9898\u3002
\n\u7ecf\u8fc7\u7ffb\u5899\u67e5\u627e\uff0c\u603b\u7b97\u53d1\u73b0\u4e86\u95ee\u9898\u7684\u539f\u56e0\uff1a\u56e0\u4e3a\u6211\u7684hive.site\u6587\u4ef6\u5728\u914d\u7f6e\u8bbf\u95eemysql\u7684\u7528\u6237\u548c\u5bc6\u7801\u65f6\u51fa\u73b0\u4e86\u95ee\u9898\u3002
\n\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\"
\n\u56e0\u4e3a\u521a\u88c5\u7684mysql\uff0c\u6240\u4ee5root\u7684\u767b\u5f55\u5bc6\u7801\u4e4b\u524d\u4e3a\u7a7a\uff08\u8fd9\u91cc\u6709\u4e00\u4e2a\u7591\u95ee\uff1a\u7b2c\u4e00\u6b21\u914d\u7f6e\u7684\u65f6\u5019\uff0c\u6211\u662f\u628ahive.site\u6587\u4ef6\u4e2droot\u7684\u5bc6\u7801\u8bbe\u4e3a\u7a7a\uff0c\u800c\u5f53\u65f6\u7531\u4e8e\u521a\u88c5mysql\uff0c\u5176\u7528\u6237\u5c31\u662froot\uff0c\u5bc6\u7801\u672c\u8eab\u4e5f\u5c31\u662f\u7a7a\uff0c\u4f46\u662f\u4e3a\u4ec0\u4e48Hive\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95eeMysql\uff1f\u4ecd\u4f1a\u62a5\u4ee5\u4e0a\u7684\u9519\u8bef\uff1f\uff09\u3002<\/p>\n\n

\u540e\u6765\u628aroot\u7684\u5bc6\u7801\u66f4\u6539\u4e3aroot\u4e4b\u540e\uff0c\u4fee\u6539\u76f8\u5173\u7684hive.site\u6587\u4ef6\u540e\uff0chive\u603b\u7b97\u53ef\u4ee5\u6b63\u5e38\u7684\u6267\u884c\u8bed\u53e5\u4e86\u3002
\n\u5173\u4e8e\u5982\u4f55\u66f4\u6539mysql\u4e2d\u7528\u6237\u7684\u5bc6\u7801\uff0c\u8fd9\u91cc\u4e5f\u7b80\u5355\u8bf4\u4e00\u4e0b\uff1a
\n1\u3001\u5148\u542f\u52a8mysql<\/p>\n\n

2\u3001\u7136\u540e\u8f93\u5165\uff1amysql -u root -p \u56de\u8f66\uff0c\u4ee5\u7a7a\u5bc6\u7801\u767b\u5f55\u3002
\n\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\"<\/p>\n\n

3\u3001\u9009\u62e9\u6570\u636e\u5e93\uff1ause mysql;
\n\u4fee\u6539\u5bc6\u7801\uff1aUPDATE user SET password=PASSWORD(\u2018123456\u2019) WHERE user=\u2019root\u2019;
\n\u5237\u65b0\uff1aflush privileges;
\n\u9000\u51fa\uff1aexit;
\n\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86\u3002
\n\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\"<\/p> <\/div>\n \n <\/div>","orderid":"0","title":"\u6267\u884cHive\u8bed\u53e5\u62a5\u9519\uff1aFAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Access denied for user '","smalltitle":"","mid":"0","fname":"Hive","special_id":"0","bak_id":"0","info":"0","hits":"514","pages":"1","comments":"0","posttime":"2019-05-16 01:00:59","list":"1557939659","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"
\u6267\u884c<\/A> Hive<\/A> \u8bed\u53e5<\/A> FAILED:<\/A> Error<\/A> metadata:<\/A> javax.jdo.JDOFatalDataStoreException:<\/A> Access<\/A> denied<\/A> for<\/A> user<\/A> '<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002 https:\/\/blog.csdn.net\/qq_16633405\/article\/details\/78290538 ..","lastview":"1719085353","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}