You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Mandar Ambawane <ma...@freestoneinfotech.com> on 2022/02/18 12:20:24 UTC

Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

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

Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.


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


Repository: atlas


Description
-------

When we provide ozone key as a path for an external table in hive,
corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.

Currently in Atlas, code supports the above in "o3fs" ozone scheme.
Need to provide improved support in "ofs" scheme, same as that of "o3fs".


Diffs
-----

  common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
  common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 


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


Testing
-------


Thanks,

Mandar Ambawane


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Ashutosh Mestry <as...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/#review224076
-----------------------------------------------------------




common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java
Line 90 (original), 90 (patched)
<https://reviews.apache.org/r/73855/#comment313037>

    Good!


- Ashutosh Mestry


On Feb. 18, 2022, 12:20 p.m., Mandar Ambawane wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73855/
> -----------------------------------------------------------
> 
> (Updated Feb. 18, 2022, 12:20 p.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.
> 
> 
> Bugs: ATLAS-4556
>     https://issues.apache.org/jira/browse/ATLAS-4556
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> When we provide ozone key as a path for an external table in hive,
> corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.
> 
> Currently in Atlas, code supports the above in "o3fs" ozone scheme.
> Need to provide improved support in "ofs" scheme, same as that of "o3fs".
> 
> 
> Diffs
> -----
> 
>   common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
>   common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 
> 
> 
> Diff: https://reviews.apache.org/r/73855/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Mandar Ambawane
> 
>


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Radhika Kundam <ra...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/#review224088
-----------------------------------------------------------


Ship it!




Ship It!

- Radhika Kundam


On Feb. 22, 2022, 9:50 p.m., Mandar Ambawane wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73855/
> -----------------------------------------------------------
> 
> (Updated Feb. 22, 2022, 9:50 p.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.
> 
> 
> Bugs: ATLAS-4556
>     https://issues.apache.org/jira/browse/ATLAS-4556
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> When we provide ozone key as a path for an external table in hive,
> corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.
> 
> Currently in Atlas, code supports the above in "o3fs" ozone scheme.
> Need to provide improved support in "ofs" scheme, same as that of "o3fs".
> 
> 
> Diffs
> -----
> 
>   common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
>   common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 
> 
> 
> Diff: https://reviews.apache.org/r/73855/diff/3/
> 
> 
> Testing
> -------
> 
> PreCommit: https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1046/consoleFull
> 
> 
> Thanks,
> 
> Mandar Ambawane
> 
>


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Mandar Ambawane <ma...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/
-----------------------------------------------------------

(Updated Feb. 23, 2022, 5:50 a.m.)


Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.


Changes
-------

Addressed review comments


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


Repository: atlas


Description
-------

When we provide ozone key as a path for an external table in hive,
corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.

Currently in Atlas, code supports the above in "o3fs" ozone scheme.
Need to provide improved support in "ofs" scheme, same as that of "o3fs".


Diffs (updated)
-----

  common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
  common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 


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

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


Testing
-------

PreCommit: https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1046/consoleFull


Thanks,

Mandar Ambawane


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Radhika Kundam <ra...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/#review224086
-----------------------------------------------------------




common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java
Line 646 (original), 648 (patched)
<https://reviews.apache.org/r/73855/#comment313046>

    Consider checking the array size to avoid ArrayIndexOutOfBoundsException while accessing strpath.split array


- Radhika Kundam


On Feb. 21, 2022, 4:39 a.m., Mandar Ambawane wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73855/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2022, 4:39 a.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.
> 
> 
> Bugs: ATLAS-4556
>     https://issues.apache.org/jira/browse/ATLAS-4556
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> When we provide ozone key as a path for an external table in hive,
> corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.
> 
> Currently in Atlas, code supports the above in "o3fs" ozone scheme.
> Need to provide improved support in "ofs" scheme, same as that of "o3fs".
> 
> 
> Diffs
> -----
> 
>   common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
>   common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 
> 
> 
> Diff: https://reviews.apache.org/r/73855/diff/2/
> 
> 
> Testing
> -------
> 
> PreCommit: https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1046/consoleFull
> 
> 
> Thanks,
> 
> Mandar Ambawane
> 
>


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Mandar Ambawane <ma...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/
-----------------------------------------------------------

(Updated Feb. 21, 2022, 12:39 p.m.)


Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.


Changes
-------

Addressed review comments


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


Repository: atlas


Description
-------

When we provide ozone key as a path for an external table in hive,
corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.

Currently in Atlas, code supports the above in "o3fs" ozone scheme.
Need to provide improved support in "ofs" scheme, same as that of "o3fs".


Diffs (updated)
-----

  common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
  common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 


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

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


Testing
-------


Thanks,

Mandar Ambawane


Re: Review Request 73855: ATLAS-4556 Add Ozone "ofs" scheme support for external tables created through hive.

Posted by Ashutosh Mestry <as...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73855/#review224075
-----------------------------------------------------------




common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java
Line 440 (original), 451 (patched)
<https://reviews.apache.org/r/73855/#comment313034>

    Consider using StringUtils.EMPTY



common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java
Lines 452 (patched)
<https://reviews.apache.org/r/73855/#comment313035>

    ofs -> Extract to private static const field.



common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java
Lines 453 (patched)
<https://reviews.apache.org/r/73855/#comment313036>

    Consider usind String.format to construct the string.


- Ashutosh Mestry


On Feb. 18, 2022, 12:20 p.m., Mandar Ambawane wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73855/
> -----------------------------------------------------------
> 
> (Updated Feb. 18, 2022, 12:20 p.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Jayendra Parab, Pinal Shah, Sarath Subramanian, and Sidharth Mishra.
> 
> 
> Bugs: ATLAS-4556
>     https://issues.apache.org/jira/browse/ATLAS-4556
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> When we provide ozone key as a path for an external table in hive,
> corresponding Ozone entities of type "Ozone_Volume", "Ozone_Bucket", "Ozone_Key" etc. get created.
> 
> Currently in Atlas, code supports the above in "o3fs" ozone scheme.
> Need to provide improved support in "ofs" scheme, same as that of "o3fs".
> 
> 
> Diffs
> -----
> 
>   common/src/main/java/org/apache/atlas/utils/AtlasPathExtractorUtil.java cf8f262b9 
>   common/src/test/java/org/apache/atlas/utils/AtlasPathExtractorUtilTest.java f35e9ae57 
> 
> 
> Diff: https://reviews.apache.org/r/73855/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Mandar Ambawane
> 
>