You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Nixon Rodrigues <ni...@freestoneinfotech.com> on 2017/11/24 13:15:48 UTC

Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/
-----------------------------------------------------------

Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.


Bugs: ATLAS-2276
    https://issues.apache.org/jira/browse/ATLAS-2276


Repository: atlas


Description
-------

This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.


Diffs
-----

  addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
  addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 


Diff: https://reviews.apache.org/r/64061/diff/1/


Testing
-------

HiveBridge unittest-cases running properly.
Create table and verified the hive/hdfs_path entities in Atlas.
Tested import-hive script and verified the hive/hdfs_path entities in Atlas.


Thanks,

Nixon Rodrigues


Re: Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/#review192056
-----------------------------------------------------------


Ship it!




Ship It!

- Madhan Neethiraj


On Nov. 28, 2017, 7:49 p.m., Nixon Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64061/
> -----------------------------------------------------------
> 
> (Updated Nov. 28, 2017, 7:49 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2276
>     https://issues.apache.org/jira/browse/ATLAS-2276
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
> Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.
> 
> 
> Diffs
> -----
> 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 
> 
> 
> Diff: https://reviews.apache.org/r/64061/diff/3/
> 
> 
> Testing
> -------
> 
> HiveBridge unittest-cases running properly.
> Create table and verified the hive/hdfs_path entities in Atlas.
> Tested import-hive script and verified the hive/hdfs_path entities in Atlas.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>


Re: Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

Posted by Nixon Rodrigues <ni...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/
-----------------------------------------------------------

(Updated Nov. 28, 2017, 7:49 p.m.)


Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.


Changes
-------

This patch includes changes to handle review comment.

Testing :- Created Atlas entities from import hive script and atlas hive hook when atlas.hook.hive.hdfs_path.convert_to_lowercase=true|false


Bugs: ATLAS-2276
    https://issues.apache.org/jira/browse/ATLAS-2276


Repository: atlas


Description
-------

This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.


Diffs (updated)
-----

  addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
  addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 


Diff: https://reviews.apache.org/r/64061/diff/3/

Changes: https://reviews.apache.org/r/64061/diff/2-3/


Testing
-------

HiveBridge unittest-cases running properly.
Create table and verified the hive/hdfs_path entities in Atlas.
Tested import-hive script and verified the hive/hdfs_path entities in Atlas.


Thanks,

Nixon Rodrigues


Re: Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/#review191920
-----------------------------------------------------------




addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
Lines 130 (patched)
<https://reviews.apache.org/r/64061/#comment269856>

    Given the current implementation converts the path to lower case, default value of 'true' seems to be appropriate. Please review.



addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
Line 750 (original), 750 (patched)
<https://reviews.apache.org/r/64061/#comment269855>

    Consider having pathUri the lower case path (when  dgiBridge.isConvertHdfsPathToLowerCase() == true), instead of creating another variable locationForHdfs, for this. This will ensure that the look-up at #749 will use the correct-cased path string.


- Madhan Neethiraj


On Nov. 27, 2017, 4:19 p.m., Nixon Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64061/
> -----------------------------------------------------------
> 
> (Updated Nov. 27, 2017, 4:19 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2276
>     https://issues.apache.org/jira/browse/ATLAS-2276
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
> Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.
> 
> 
> Diffs
> -----
> 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 
> 
> 
> Diff: https://reviews.apache.org/r/64061/diff/2/
> 
> 
> Testing
> -------
> 
> HiveBridge unittest-cases running properly.
> Create table and verified the hive/hdfs_path entities in Atlas.
> Tested import-hive script and verified the hive/hdfs_path entities in Atlas.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>


Re: Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

Posted by Nixon Rodrigues <ni...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/
-----------------------------------------------------------

(Updated Nov. 27, 2017, 4:19 p.m.)


Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.


Changes
-------

This patch includes changes to handle review comments by Madhan Neethiraj


Bugs: ATLAS-2276
    https://issues.apache.org/jira/browse/ATLAS-2276


Repository: atlas


Description
-------

This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.


Diffs (updated)
-----

  addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
  addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 


Diff: https://reviews.apache.org/r/64061/diff/2/

Changes: https://reviews.apache.org/r/64061/diff/1-2/


Testing
-------

HiveBridge unittest-cases running properly.
Create table and verified the hive/hdfs_path entities in Atlas.
Tested import-hive script and verified the hive/hdfs_path entities in Atlas.


Thanks,

Nixon Rodrigues


Re: Review Request 64061: ATLAS-2276 : Path value for hdfs_path type entity is set to lower case from hive-bridge.

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64061/#review191861
-----------------------------------------------------------




addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
Lines 102 (patched)
<https://reviews.apache.org/r/64061/#comment269801>

    - consider renmaing 'allowLowerCase' ==> 'convertHdfsPathToLowerCase'
    - consider marking this as 'final'



addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
Lines 130 (patched)
<https://reviews.apache.org/r/64061/#comment269802>

    Consider renaming the property as 'hdfs_path.convert_to_lowercase'



addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
Line 298 (original), 308 (patched)
<https://reviews.apache.org/r/64061/#comment269806>

    Handle case-conversion of 'tableLocation' here, before calling fillHDFSDataSet().



addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
Lines 596 (patched)
<https://reviews.apache.org/r/64061/#comment269805>

    Changes in this method, fillHDFSDataSet(), are not necessary, since the caller of this method handles the  case conversion details. Please revert.



addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
Line 747 (original), 747 (patched)
<https://reviews.apache.org/r/64061/#comment269803>

    This call to lower() needs to be updated as well, similar to line #796 below.


- Madhan Neethiraj


On Nov. 24, 2017, 1:15 p.m., Nixon Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64061/
> -----------------------------------------------------------
> 
> (Updated Nov. 24, 2017, 1:15 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2276
>     https://issues.apache.org/jira/browse/ATLAS-2276
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> This patch include fix for Path value for hdfs_path type entity which is set to lower case from hive-bridge.
> Added a new property *atlas.hook.hive.hdfs_path.allowlowercase* if set to true, then the path will be set to lowercase, else by default the path value will same as hdfs filename.
> 
> 
> Diffs
> -----
> 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ab0094b8 
>   addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 57f5efb5 
> 
> 
> Diff: https://reviews.apache.org/r/64061/diff/1/
> 
> 
> Testing
> -------
> 
> HiveBridge unittest-cases running properly.
> Create table and verified the hive/hdfs_path entities in Atlas.
> Tested import-hive script and verified the hive/hdfs_path entities in Atlas.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>