[jira] [Updated] (PIG-5355) Negative progress report by HBaseTableRecordReader
[ https://issues.apache.org/jira/browse/PIG-5355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Satish Subhashrao Saley updated PIG-5355: - Description: The logic for padding the current row does not consider the updated padded row during the comparison. It ends up with different length then expected. This results in negative value for {{processed}}. {code} byte[] lastPadded = currRow_; if (currRow_.length < endRow_.length) { lastPadded = Bytes.padTail(currRow_, endRow_.length - currRow_.length); } if (currRow_.length < startRow_.length) { lastPadded = Bytes.padTail(currRow_, startRow_.length - currRow_.length); } byte [] prependHeader = {1, 0}; BigInteger bigLastRow = new BigInteger(Bytes.add(prependHeader, lastPadded)); if (bigLastRow.compareTo(bigEnd_) > 0) { return progressSoFar_; } BigDecimal processed = new BigDecimal(bigLastRow.subtract(bigStart_)); {code} The fix is to use {{lastPadded}} in the second {{if}} comparison and {{Bytes.padTail}} call inside that {{if}} PIG-4700 added progress reporting. This enabled ProgressHelper in Tez. It calls {{getProgress}} [here |https://github.com/apache/tez/blob/master/tez-api/src/main/java/org/apache/tez/common/ProgressHelper.java#L50] on {{PigRecrodReader}} https://github.com/apache/pig/blob/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/PigRecordReader.java#L159 . Since Pig is reporting negative progress, job is getting killed by AM. was: The logic for padding the current row does not consider the updated padded row during the comparison. It ends up with different length then expected. This results in negative value for {{processed}}. {code} byte[] lastPadded = currRow_; if (currRow_.length < endRow_.length) { lastPadded = Bytes.padTail(currRow_, endRow_.length - currRow_.length); } if (currRow_.length < startRow_.length) { lastPadded = Bytes.padTail(currRow_, startRow_.length - currRow_.length); } byte [] prependHeader = {1, 0}; BigInteger bigLastRow = new BigInteger(Bytes.add(prependHeader, lastPadded)); if (bigLastRow.compareTo(bigEnd_) > 0) { return progressSoFar_; } BigDecimal processed = new BigDecimal(bigLastRow.subtract(bigStart_)); {code} The fix is to use {{lastPadded}} in the second {{if}} comparison and {{Bytes.padTail}} call inside that {{if}} > Negative progress report by HBaseTableRecordReader > -- > > Key: PIG-5355 > URL: https://issues.apache.org/jira/browse/PIG-5355 > Project: Pig > Issue Type: Bug >Reporter: Satish Subhashrao Saley >Assignee: Satish Subhashrao Saley >Priority: Major > > The logic for padding the current row does not consider the updated padded > row during the comparison. It ends up with different length then expected. > This results in negative value for {{processed}}. > {code} > byte[] lastPadded = currRow_; > if (currRow_.length < endRow_.length) { > lastPadded = Bytes.padTail(currRow_, endRow_.length - > currRow_.length); > } > if (currRow_.length < startRow_.length) { > lastPadded = Bytes.padTail(currRow_, startRow_.length - > currRow_.length); > } > byte [] prependHeader = {1, 0}; > BigInteger bigLastRow = new BigInteger(Bytes.add(prependHeader, > lastPadded)); > if (bigLastRow.compareTo(bigEnd_) > 0) { > return progressSoFar_; > } > BigDecimal processed = new > BigDecimal(bigLastRow.subtract(bigStart_)); > {code} > The fix is to use {{lastPadded}} in the second {{if}} comparison and > {{Bytes.padTail}} call inside that {{if}} > PIG-4700 added progress reporting. This enabled ProgressHelper in Tez. It > calls {{getProgress}} [here > |https://github.com/apache/tez/blob/master/tez-api/src/main/java/org/apache/tez/common/ProgressHelper.java#L50] > on {{PigRecrodReader}} > https://github.com/apache/pig/blob/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/PigRecordReader.java#L159 > . Since Pig is reporting negative progress, job is getting killed by AM. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (PIG-5355) Negative progress report by HBaseTableRecordReader
Satish Subhashrao Saley created PIG-5355: Summary: Negative progress report by HBaseTableRecordReader Key: PIG-5355 URL: https://issues.apache.org/jira/browse/PIG-5355 Project: Pig Issue Type: Bug Reporter: Satish Subhashrao Saley The logic for padding the current row does not consider the updated padded row during the comparison. It ends up with different length then expected. This results in negative value for {{processed}}. {code} byte[] lastPadded = currRow_; if (currRow_.length < endRow_.length) { lastPadded = Bytes.padTail(currRow_, endRow_.length - currRow_.length); } if (currRow_.length < startRow_.length) { lastPadded = Bytes.padTail(currRow_, startRow_.length - currRow_.length); } byte [] prependHeader = {1, 0}; BigInteger bigLastRow = new BigInteger(Bytes.add(prependHeader, lastPadded)); if (bigLastRow.compareTo(bigEnd_) > 0) { return progressSoFar_; } BigDecimal processed = new BigDecimal(bigLastRow.subtract(bigStart_)); {code} The fix is to use {{lastPadded}} in the second {{if}} comparison and {{Bytes.padTail}} call inside that {{if}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Assigned] (PIG-5355) Negative progress report by HBaseTableRecordReader
[ https://issues.apache.org/jira/browse/PIG-5355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Satish Subhashrao Saley reassigned PIG-5355: Assignee: Satish Subhashrao Saley > Negative progress report by HBaseTableRecordReader > -- > > Key: PIG-5355 > URL: https://issues.apache.org/jira/browse/PIG-5355 > Project: Pig > Issue Type: Bug >Reporter: Satish Subhashrao Saley >Assignee: Satish Subhashrao Saley >Priority: Major > > The logic for padding the current row does not consider the updated padded > row during the comparison. It ends up with different length then expected. > This results in negative value for {{processed}}. > {code} > byte[] lastPadded = currRow_; > if (currRow_.length < endRow_.length) { > lastPadded = Bytes.padTail(currRow_, endRow_.length - > currRow_.length); > } > if (currRow_.length < startRow_.length) { > lastPadded = Bytes.padTail(currRow_, startRow_.length - > currRow_.length); > } > byte [] prependHeader = {1, 0}; > BigInteger bigLastRow = new BigInteger(Bytes.add(prependHeader, > lastPadded)); > if (bigLastRow.compareTo(bigEnd_) > 0) { > return progressSoFar_; > } > BigDecimal processed = new > BigDecimal(bigLastRow.subtract(bigStart_)); > {code} > The fix is to use {{lastPadded}} in the second {{if}} comparison and > {{Bytes.padTail}} call inside that {{if}} > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (PIG-5191) Pig HBase 2.0.0 support
[ https://issues.apache.org/jira/browse/PIG-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16596467#comment-16596467 ] Nandor Kollar commented on PIG-5191: Thanks Adam, Rohini and Daniel for your reviews! > Pig HBase 2.0.0 support > --- > > Key: PIG-5191 > URL: https://issues.apache.org/jira/browse/PIG-5191 > Project: Pig > Issue Type: Improvement >Reporter: Nandor Kollar >Assignee: Nandor Kollar >Priority: Major > Fix For: 0.18.0 > > Attachments: PIG-5191_1.patch, PIG-5191_2.patch > > > Pig doesn't support HBase 2.0.0. Since the new HBase API introduces several > API changes, we should find a way to support both 1.x and 2.x HBase API. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (PIG-5191) Pig HBase 2.0.0 support
[ https://issues.apache.org/jira/browse/PIG-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16596222#comment-16596222 ] Adam Szita commented on PIG-5191: - Looks good to me too. Committed to trunk. Thanks for the patch Nandor, and thanks for reviewing Rohini, Daniel. > Pig HBase 2.0.0 support > --- > > Key: PIG-5191 > URL: https://issues.apache.org/jira/browse/PIG-5191 > Project: Pig > Issue Type: Improvement >Reporter: Nandor Kollar >Assignee: Nandor Kollar >Priority: Major > Fix For: 0.18.0 > > Attachments: PIG-5191_1.patch, PIG-5191_2.patch > > > Pig doesn't support HBase 2.0.0. Since the new HBase API introduces several > API changes, we should find a way to support both 1.x and 2.x HBase API. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (PIG-5191) Pig HBase 2.0.0 support
[ https://issues.apache.org/jira/browse/PIG-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Szita updated PIG-5191: Resolution: Fixed Status: Resolved (was: Patch Available) > Pig HBase 2.0.0 support > --- > > Key: PIG-5191 > URL: https://issues.apache.org/jira/browse/PIG-5191 > Project: Pig > Issue Type: Improvement >Reporter: Nandor Kollar >Assignee: Nandor Kollar >Priority: Major > Fix For: 0.18.0 > > Attachments: PIG-5191_1.patch, PIG-5191_2.patch > > > Pig doesn't support HBase 2.0.0. Since the new HBase API introduces several > API changes, we should find a way to support both 1.x and 2.x HBase API. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] Subscription: PIG patch available
Issue Subscription Filter: PIG patch available (38 issues) Subscriber: pigdaily Key Summary PIG-5343Upgrade developer build environment https://issues.apache.org/jira/browse/PIG-5343 PIG-5342Add setting to turn off bloom join combiner https://issues.apache.org/jira/browse/PIG-5342 PIG-5338Prevent deep copy of DataBag into Jython List https://issues.apache.org/jira/browse/PIG-5338 PIG-5323Implement LastInputStreamingOptimizer in Tez https://issues.apache.org/jira/browse/PIG-5323 PIG-5317Upgrade old dependencies: commons-lang, hsqldb, commons-logging https://issues.apache.org/jira/browse/PIG-5317 PIG-5273_SUCCESS file should be created at the end of the job https://issues.apache.org/jira/browse/PIG-5273 PIG-5267Review of org.apache.pig.impl.io.BufferedPositionedInputStream https://issues.apache.org/jira/browse/PIG-5267 PIG-5256Bytecode generation for POFilter and POForeach https://issues.apache.org/jira/browse/PIG-5256 PIG-5191Pig HBase 2.0.0 support https://issues.apache.org/jira/browse/PIG-5191 PIG-5160SchemaTupleFrontend.java is not thread safe, cause PigServer thrown NPE in multithread env https://issues.apache.org/jira/browse/PIG-5160 PIG-5115Builtin AvroStorage generates incorrect avro schema when the same pig field name appears in the alias https://issues.apache.org/jira/browse/PIG-5115 PIG-5106Optimize when mapreduce.input.fileinputformat.input.dir.recursive set to true https://issues.apache.org/jira/browse/PIG-5106 PIG-5081Can not run pig on spark source code distribution https://issues.apache.org/jira/browse/PIG-5081 PIG-5080Support store alias as spark table https://issues.apache.org/jira/browse/PIG-5080 PIG-5057IndexOutOfBoundsException when pig reducer processOnePackageOutput https://issues.apache.org/jira/browse/PIG-5057 PIG-5029Optimize sort case when data is skewed https://issues.apache.org/jira/browse/PIG-5029 PIG-4926Modify the content of start.xml for spark mode https://issues.apache.org/jira/browse/PIG-4926 PIG-4913Reduce jython function initiation during compilation https://issues.apache.org/jira/browse/PIG-4913 PIG-4849pig on tez will cause tez-ui to crash,because the content from timeline server is too long. https://issues.apache.org/jira/browse/PIG-4849 PIG-4750REPLACE_MULTI should compile Pattern once and reuse it https://issues.apache.org/jira/browse/PIG-4750 PIG-4684Exception should be changed to warning when job diagnostics cannot be fetched https://issues.apache.org/jira/browse/PIG-4684 PIG-4656Improve String serialization and comparator performance in BinInterSedes https://issues.apache.org/jira/browse/PIG-4656 PIG-4598Allow user defined plan optimizer rules https://issues.apache.org/jira/browse/PIG-4598 PIG-4551Partition filter is not pushed down in case of SPLIT https://issues.apache.org/jira/browse/PIG-4551 PIG-4539New PigUnit https://issues.apache.org/jira/browse/PIG-4539 PIG-4515org.apache.pig.builtin.Distinct throws ClassCastException https://issues.apache.org/jira/browse/PIG-4515 PIG-4373Implement PIG-3861 in Tez https://issues.apache.org/jira/browse/PIG-4373 PIG-4323PackageConverter hanging in Spark https://issues.apache.org/jira/browse/PIG-4323 PIG-4313StackOverflowError in LIMIT operation on Spark https://issues.apache.org/jira/browse/PIG-4313 PIG-4251Pig on Storm https://issues.apache.org/jira/browse/PIG-4251 PIG-4002Disable combiner when map-side aggregation is used https://issues.apache.org/jira/browse/PIG-4002 PIG-3952PigStorage accepts '-tagSplit' to return full split information https://issues.apache.org/jira/browse/PIG-3952 PIG-3911Define unique fields with @OutputSchema https://issues.apache.org/jira/browse/PIG-3911 PIG-3877Getting Geo Latitude/Longitude from Address Lines https://issues.apache.org/jira/browse/PIG-3877 PIG-3873Geo distance calculation using Haversine https://issues.apache.org/jira/browse/PIG-3873 PIG-3668COR built-in function when atleast one of the coefficient values is NaN https://issues.apache.org/jira/browse/PIG-3668 PIG-3587add functionality for rolling over dates https://issues.apache.org/jira/browse/PIG-3587 PIG-1804Alow Jython function to implement Algebraic and/or Accumulator interfaces https://issues.apache.org/jira/browse/PIG-1804 You may edit this subscription at: https://issues.apache.org/jira/secure/EditSubscription!default.jspa?subId=16328=12322384