phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-3536) Remove creating unnecessary phoenix connections in MR Tasks of Hive
Date Fri, 16 Dec 2016 06:20:58 GMT


Hadoop QA commented on PHOENIX-3536:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment
  against master branch at commit 7a1f971b598ec8b45023e3866fb03009ff345315.
  ATTACHMENT ID: 12843550

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 9 new or modified

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:red}-1 javadoc{color}.  The javadoc tool appears to have generated 43 warning messages.

    {color:red}-1 release audit{color}.  The applied patch generated 1 release audit warnings
(more than the master's current 0 warnings).

    {color:red}-1 lineLengths{color}.  The patch introduces the following lines longer than
    +        this.isRequestLevelMetricsEnabled = JDBCUtil.isCollectingRequestLevelMetricsEnabled(url,,;
+        PColumn column = new PColumnImpl(PNameFactory.newName("c1"), PNameFactory.newName("f1"),
PDecimal.INSTANCE, maxLen, scale,
+                new PColumnImpl(PNameFactory.newName("c2"), PNameFactory.newName("f1"), PDecimal.INSTANCE,
maxLen, scale,
+                new PColumnImpl(PNameFactory.newName("c3"), PNameFactory.newName("f1"), PInteger.INSTANCE,
maxLen, scale,
+                new PColumnImpl(PNameFactory.newName("c4"), PNameFactory.newName("f1"), PChar.INSTANCE,
maxLen, scale,
+        ProjectedColumnExpression colExp = new ProjectedColumnExpression(column, columns,
1, "test");
+                            PhoenixEmbeddedDriver.ConnectionInfo.create(PHOENIX_CONNECTIONLESS_JDBC_URL),
+                             * deeply copying properties by QueryServices causes performance
+                        public HTableInterface getTable(final byte[] tableName) throws SQLException
+        ConnectionQueryServices queryServices = qplan.getContext().getConnection().getQueryServices();

    {color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results:
Release audit warnings:
Javadoc warnings:
Console output:

This message is automatically generated.

> Remove creating unnecessary phoenix connections in MR Tasks of Hive
> -------------------------------------------------------------------
>                 Key: PHOENIX-3536
>                 URL:
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Jeongdae Kim
>            Assignee: Jeongdae Kim
>              Labels: HivePhoenix
>         Attachments: PHOENIX-3536.1.patch
> PhoenixStorageHandler creates phoenix connections to make QueryPlan in getSplit phase(prepare
MR) and getRecordReader phase(Map) while running MR Job.
> in phoenix, it spends too many times to create the first phoenix connection(QueryServices)
for specific URL. (checking and loading phoenix schema information)
> i found it is possible to remove creating query plan again in Map phase(getRecordReader())
by serializing QueryPlan created from Input format ans passing this plan to record reader.

>  this approach improves scan performance by removing trying to unnecessary connection
in map phase.

This message was sent by Atlassian JIRA

View raw message