Bug 1534799

Summary: Review Request: python-hdfs - HdfsCLI: API and command line interface for HDFS
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: Package ReviewAssignee: Robert-André Mauchin 🐧 <eclipseo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eclipseo, package-review
Target Milestone: ---Flags: eclipseo: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-06 10:48:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1534787    
Bug Blocks: 1538824    

Description Ankur Sinha (FranciscoD) 2018-01-16 00:24:48 UTC
Spec URL: https://ankursinha.fedorapeople.org/python-hdfs/python-hdfs.spec
SRPM URL: https://ankursinha.fedorapeople.org/python-hdfs/python-hdfs-2.1.0-1.fc27.src.rpm

Description:

Python (2 and 3) bindings for the WebHDFS (and HttpFS) :API, supporting both secure and insecure clusters. Command line interface to transfer files and start an interactive client shell, with aliases for convenient namenode URL caching.  Additional functionality through optional extensions: avro, to read and write Avro files directly from HDFS.  dataframe, to load and save Pandas dataframes.  kerberos, to support Kerberos authenticated clusters.

Fedora Account System Username: ankursinha

Comment 1 Robert-André Mauchin 🐧 2018-01-16 15:12:27 UTC
 - I got an error at the Sphinx-build part:

+ sphinx-build . html
Running Sphinx v1.6.6
making output directory...
Configuration error:
There is a programable error in your configuration file:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/sphinx/config.py", line 157, in __init__
    execfile_(filename, config)
  File "/usr/lib/python2.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/usr/lib/python2.7/site-packages/six.py", line 709, in exec_
    exec("""exec _code_ in _globs_, _locs_""")
  File "<string>", line 1, in <module>
  File "conf.py", line 61, in <module>
    import hdfs
ImportError: No module named hdfs
Erreur de construction de RPM :
erreur : Mauvais statut de sortie pour /var/tmp/rpm-tmp.7NTqCT (%build)
    Mauvais statut de sortie pour /var/tmp/rpm-tmp.7NTqCT (%build)


   Simply use:

pushd doc
    PYTHONPATH=../ sphinx-build . html
popd

   to build the docs.

 - Some binaries are installed but not packaged in %files:

   /usr/bin/hdfscli
   /usr/bin/hdfscli-avro

Add them to %files (likely in the python3 subpackage).

Comment 2 Ankur Sinha (FranciscoD) 2018-01-23 10:49:49 UTC
Hi!

Updated spec/srpms:

https://ankursinha.fedorapeople.org/python-hdfs/python-hdfs.spec
https://ankursinha.fedorapeople.org/python-hdfs/python-hdfs-2.1.0-2.fc27.src.rpm

I've fixed the build and the docs etc. Was waiting for python-avro to build in rawhide.

Cheers!

Comment 3 Robert-André Mauchin 🐧 2018-01-23 14:54:13 UTC
You can use find with a for loop:

for lib in `find %{buildroot}%{python2_sitelib}/%{srcname}/ -name *.py`
do
    …
done


Package is approved.

Comment 4 Gwyn Ciesla 2018-01-23 18:49:00 UTC
(fedrepo-req-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-hdfs

Comment 5 Fedora Update System 2018-01-23 19:43:03 UTC
python-hdfs-2.1.0-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c93c8b9950

Comment 6 Fedora Update System 2018-01-23 19:43:36 UTC
python-hdfs-2.1.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-01ea1b966e

Comment 7 Fedora Update System 2018-01-25 07:54:19 UTC
python-hdfs-2.1.0-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c93c8b9950

Comment 8 Fedora Update System 2018-01-25 08:36:56 UTC
python-hdfs-2.1.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-01ea1b966e

Comment 9 Fedora Update System 2018-02-06 10:48:36 UTC
python-hdfs-2.1.0-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2018-02-06 15:29:12 UTC
python-hdfs-2.1.0-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.