----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/72960/#review222050 -----------------------------------------------------------
addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java Lines 385 (patched) <https://reviews.apache.org/r/72960/#comment311118> Is empty string an acceptable value for mandatory attribute ATTRIBUTE_USER_NAME? If not, consider reading default username from config - like: String defaultUserName = config.getString("atlas.hook.hive.default.username, "hive"); - Madhan Neethiraj On Oct. 14, 2020, 10:35 a.m., chaitali wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/72960/ > ----------------------------------------------------------- > > (Updated Oct. 14, 2020, 10:35 a.m.) > > > Review request for atlas, Jayendra Parab, Madhan Neethiraj, Nixon Rodrigues, > and Sarath Subramanian. > > > Bugs: ATLAS-3994 > https://issues.apache.org/jira/browse/ATLAS-3994 > > > Repository: atlas > > > Description > ------- > > 06:33:41.409 [main] ERROR org.apache.atlas.hive.bridge.HiveMetaStoreBridge - > Import failed for hive_table tobedeleted__wallet > org.apache.atlas.AtlasServiceException: Metadata service API > org.apache.atlas.AtlasClientV2$API_V2@17f2dd85 failed with status 404 (Not > Found) Response Body ( > > {"errorCode":"ATLAS-404-00-007","errorMessage":"Invalid instance > creation/updation parameters passed : hive_process.userName: mandatory > attribute value missing in type hive_process"} > > ) > > This patch adds the null check for "owner" to fix the bug. > > > Diffs > ----- > > > addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java > 24e06dc2b > > > Diff: https://reviews.apache.org/r/72960/diff/1/ > > > Testing > ------- > > Tested import hive script for db, tables > > > Thanks, > > chaitali > >