将存储库和策略从xasecure迁移到游侠

时间:2015-09-17 11:15:16

标签: mysql hadoop ambari

我想问一下如何将存储库和策略从xasecure迁移到HDP中的游侠。我正在使用HDP 2.2并将ambari从1.7升级到2.1然后将xasecure升级到游侠。 Ranger在mysql中创建一个名为" ranger"的新数据库。如果我从xasecure恢复我的转储数据库名为" xasecure"作为"游侠"数据库我想编辑我的策略"找不到页面"和xa_portal_sql.log时出错:

  

错误net.sf.log4jdbc.Slf4jSpyLogDelegator(Slf4jSpyLogDelegator.java:130) - 1. PreparedStatement.executeQuery()FAILED! SELECT DISTINCT ID AS a1,ADDED_BY_ID AS a2,ASSET_ID AS a3,RES_COL_FAMS AS a4,COL_TYPE AS   a5,RES_COLS AS a6,CREATE_TIME AS a7,RES_DBS AS a8,DESCR AS a9,IS_ENCRYPT AS a10,IS_RECURSIVE
  AS a11,RES_NAME AS a12,PARENT_ID AS a13,PARENT_PATH AS a14,POLICY_NAME AS a15,RES_GROUP   AS a16,RES_STATUS AS a17,RES_TYPE AS a18,RES_SERVICES AS a19,TABLE_TYPE AS a20,RES_TABLES   AS a21,RES_TOPOLOGIES AS a22,RES_UDFS AS a23,UPDATE_TIME AS a24,UPD_BY_ID AS a25 FROM x_resource   WHERE((1 = 1)AND(ASSET_ID = 1))ORDER BY ID ASC LIMIT 0,25;    {0毫秒后失败}   com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:未知列' POLICY_NAME'在'字段列表'

有人能帮帮我吗?提前谢谢

1 个答案:

答案 0 :(得分:1)

好的,如果其他人遇到此问题,您应该将“POLICY_NAME”列添加到表“x_resource”,并将其他一些列添加到其他表中。您将在xa_portal_sql.log

中找到