Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

pydoop-0.8.1_bug

Help
Alexey
2013-03-06
2013-03-07
  • Alexey
    Alexey
    2013-03-06

    Hello,

    If any of XML configuration files, like

    hdfs-site.xml
    

    for example, contains empty property enclosure, what is completely ok with Hadoop itself, like

    <property>
    </property>
    

    then Pydoop raises:

    Traceback (most recent call last):
      File "/usr/local/bin/pydoop", line 27, in <module>
    from pydoop.app.main import main
     File "/usr/local/lib/python2.7/dist-packages/pydoop/__init__.py", line 41, in <module>
    _HADOOP_INFO = _PATH_FINDER.find()  # fill the cache ASAP
     File "/usr/local/lib/python2.7/dist-packages/pydoop/hadoop_utils.py", line 323, in find
       info[a] = getattr(self, a)()
     File "/usr/local/lib/python2.7/dist-packages/pydoop/hadoop_utils.py", line 282, in hadoop_params
       params.update(parse_hadoop_conf_file(fn))
      File "/usr/local/lib/python2.7/dist-packages/pydoop/hadoop_utils.py", line 155, in parse_hadoop_conf_file
        e = p.getElementsByTagName(tag_name)[0]
    IndexError: list index out of range
    

    Regards, Alexey

     
  • Simone Leo
    Simone Leo
    2013-03-06

    Hi,

    thanks for reporting this. I will fix it for the next release.

    Simone

     
  • Simone Leo
    Simone Leo
    2013-03-07