[
https://issues.apache.org/jira/browse/HCATALOG-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415445#comment-13415445
]
Arup Malakar commented on HCATALOG-448:
---------------------------------------
I had written a unit test which writes 500MB sample data, it is now taking ~10
second, compared to earlier ~2:40 minutes without this fix.
{code:java}
public void testHCatStorageTime() throws IOException,
CommandNeedRetryException {
driver.run("drop table junit_unparted");
String createTable = "create table junit_unparted(k String, v string)
stored as TEXTFILE";
int retCode = driver.run(createTable).getResponseCode();
if (retCode != 0) {
throw new IOException("Failed to create table.");
}
PigServer server = new PigServer(ExecType.LOCAL);
server.setBatchOn();
server.registerQuery("A = load '" + BIG_INPUT_FILE_NAME + "' as
(k:chararray, v:chararray);");
server.registerQuery("store A into 'junit_unparted' using " +
HCatStorer.class.getName() + "();");
server.executeBatch();
}
{code}
> HCatStorer performance is 4x slower in HCat 0.4 than HCat 0.2
> -------------------------------------------------------------
>
> Key: HCATALOG-448
> URL: https://issues.apache.org/jira/browse/HCATALOG-448
> Project: HCatalog
> Issue Type: Bug
> Affects Versions: 0.4.1
> Reporter: Rohini Palaniswamy
> Assignee: Mithun Radhakrishnan
> Priority: Critical
> Attachments: hcatalog-448-for-0.4-codebase.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira