[ https://issues.apache.org/jira/browse/OOZIE-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15552203#comment-15552203 ]
Hadoop QA commented on OOZIE-2393: ---------------------------------- Testing JIRA OOZIE-2393 Cleaning local git workspace ---------------------------- {color:green}+1 PATCH_APPLIES{color} {color:green}+1 CLEAN{color} {color:green}+1 RAW_PATCH_ANALYSIS{color} . {color:green}+1{color} the patch does not introduce any @author tags . {color:green}+1{color} the patch does not introduce any tabs . {color:green}+1{color} the patch does not introduce any trailing spaces . {color:green}+1{color} the patch does not introduce any line longer than 132 . {color:green}+1{color} the patch does adds/modifies 7 testcase(s) {color:green}+1 RAT{color} . {color:green}+1{color} the patch does not seem to introduce new RAT warnings {color:green}+1 JAVADOC{color} . {color:green}+1{color} the patch does not seem to introduce new Javadoc warnings {color:green}+1 COMPILE{color} . {color:green}+1{color} HEAD compiles . {color:green}+1{color} patch compiles . {color:green}+1{color} the patch does not seem to introduce new javac warnings {color:green}+1 BACKWARDS_COMPATIBILITY{color} . {color:green}+1{color} the patch does not change any JPA Entity/Colum/Basic/Lob/Transient annotations . {color:green}+1{color} the patch does not modify JPA files {color:green}+1 TESTS{color} . Tests run: 1818 {color:green}+1 DISTRO{color} . {color:green}+1{color} distro tarball builds with the patch ---------------------------- {color:green}*+1 Overall result, good!, no -1s*{color} The full output of the test-patch run is available at . https://builds.apache.org/job/oozie-trunk-precommit-build/3359/ > Allow table drop in hcat prepare > -------------------------------- > > Key: OOZIE-2393 > URL: https://issues.apache.org/jira/browse/OOZIE-2393 > Project: Oozie > Issue Type: Improvement > Components: core > Affects Versions: 4.1.0, 4.2.0 > Reporter: Muhammad Ehsan ul Haque > Assignee: Abhishek Bafna > Priority: Minor > Labels: hcatalog, prepare > Fix For: 5.0.0 > > Attachments: OOZIE-2393-00.patch, OOZIE-2393-01.patch > > > The hcat prepare only allows to drop partitions. It would be nice to also > allow dropping of table, depending on the URL. The current format of the URL > is > {code}hcat://[metastore server]:[port]/[database name]/[table > name]/[partkey1]=[value];[partkey2]=[value]{code} > where at least one partition must be provided, otherwise the prepare step > fails with the fololwing exception. > {code} > Starting the execution of prepare actions > Creating HCatClient for user=ehsan.haq (auth:SIMPLE) and > server=thrift://datavault-prod-app2.internal.machines:9083 > Prepare execution in the Launcher Mapper has failed > Failing Oozie Launcher, Main class > [org.apache.oozie.action.hadoop.SqoopMain], exception invoking main(), Error > trying to drop > hcat://datavault-prod-app2.internal.machines:9083/test_rdbms_import_2015110600/test > org.apache.oozie.action.hadoop.LauncherException: Error trying to drop > hcat://datavault-prod-app2.internal.machines:9083/test_rdbms_import_2015110600/test > at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:178) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:450) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343) > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) > Caused by: org.apache.oozie.action.hadoop.LauncherException: Error trying to > drop > hcat://datavault-prod-app2.internal.machines:9083/test_rdbms_import_2015110600/test > at > org.apache.oozie.action.hadoop.HCatLauncherURIHandler.delete(HCatLauncherURIHandler.java:64) > at > org.apache.oozie.action.hadoop.PrepareActionsDriver.execute(PrepareActionsDriver.java:89) > at > org.apache.oozie.action.hadoop.PrepareActionsDriver.doOperations(PrepareActionsDriver.java:67) > at > org.apache.oozie.action.hadoop.LauncherMapper.executePrepare(LauncherMapper.java:446) > at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:174) > ... 8 more > Caused by: java.net.URISyntaxException: URI path is not in expected format: > hcat://datavault-prod-app2.internal.machines:9083/test_rdbms_import_2015110600/test > at org.apache.oozie.util.HCatURI.parse(HCatURI.java:66) > at org.apache.oozie.util.HCatURI.<init>(HCatURI.java:52) > at org.apache.oozie.util.HCatURI.<init>(HCatURI.java:48) > at > org.apache.oozie.action.hadoop.HCatLauncherURIHandler.delete(HCatLauncherURIHandler.java:52) > ... 12 more > Oozie Launcher failed, finishing Hadoop job gracefully > {code} > h3. Suggestion > In the URL if the partition is not provided then it should delete the entire > table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)