You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Lav Jain <lj...@pivotal.io> on 2016/02/18 00:16:41 UTC
Review Request 43682: HBase unittest fails when using python 2.6
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43682/
-----------------------------------------------------------
Review request for Ambari, Alexander Denissov, Alejandro Fernandez, Andrew Onischuk, bhuvnesh chaudhary, Dmitro Lisnichenko, Jaimin Jetly, jun aoki, Jayush Luniya, Matt, Newton Alex, and Oleksandr Diachenko.
Bugs: AMBARI-15080
https://issues.apache.org/jira/browse/AMBARI-15080
Repository: ambari
Description
-------
```
[root@c6401 ambari-server]# python
Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[root@c6401 ambari-server]# mvn test
.
.
.
----------------------------------------------------------------------
Failed tests:
ERROR: Failed to load test files ['test_phoenix_queryserver', 'test_hbase_master', 'test_hbase_client', 'test_hbase_service_check', 'test_hbase_regionserver']
----------------------------------------------------------------------
Traceback (most recent call last):
File "unitTests.py", line 120, in stack_test_executor
modules]
File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
module = __import__('.'.join(parts_copy))
File "/root/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 21, in <module>
from unittest import SkipTest
ImportError: cannot import name SkipTest
----------------------------------------------------------------------
```
Diffs
-----
ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 7722af0
Diff: https://reviews.apache.org/r/43682/diff/
Testing
-------
Tested manually using python 2.6 and python 2.7
Thanks,
Lav Jain
Re: Review Request 43682: HBase unittest fails when using python 2.6
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43682/#review119598
-----------------------------------------------------------
Ship it!
Ship It!
- Andrew Onischuk
On Feb. 17, 2016, 11:16 p.m., Lav Jain wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43682/
> -----------------------------------------------------------
>
> (Updated Feb. 17, 2016, 11:16 p.m.)
>
>
> Review request for Ambari, Alexander Denissov, Alejandro Fernandez, Andrew Onischuk, bhuvnesh chaudhary, Dmitro Lisnichenko, Jaimin Jetly, jun aoki, Jayush Luniya, Matt, Newton Alex, and Oleksandr Diachenko.
>
>
> Bugs: AMBARI-15080
> https://issues.apache.org/jira/browse/AMBARI-15080
>
>
> Repository: ambari
>
>
> Description
> -------
>
> ```
> [root@c6401 ambari-server]# python
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> [root@c6401 ambari-server]# mvn test
> .
> .
> .
> ----------------------------------------------------------------------
> Failed tests:
> ERROR: Failed to load test files ['test_phoenix_queryserver', 'test_hbase_master', 'test_hbase_client', 'test_hbase_service_check', 'test_hbase_regionserver']
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "unitTests.py", line 120, in stack_test_executor
> modules]
> File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
> module = __import__('.'.join(parts_copy))
> File "/root/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 21, in <module>
> from unittest import SkipTest
> ImportError: cannot import name SkipTest
>
> ----------------------------------------------------------------------
> ```
>
>
> Diffs
> -----
>
> ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 7722af0
>
> Diff: https://reviews.apache.org/r/43682/diff/
>
>
> Testing
> -------
>
> Tested manually using python 2.6 and python 2.7
>
>
> Thanks,
>
> Lav Jain
>
>
Re: Review Request 43682: HBase unittest fails when using python 2.6
Posted by Lav Jain <lj...@pivotal.io>.
> On Feb. 18, 2016, 12:46 a.m., Matt wrote:
> > ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py, line 160
> > <https://reviews.apache.org/r/43682/diff/1/?file=1253337#file1253337line160>
> >
> > unittest2 library in Python 2.6 has test skipping feature.
> >
> > You may use that here if you find it is appropriate.
Unittest2 is not available by default in Python2.6 (need to pip install unittest2).
- Lav
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43682/#review119565
-----------------------------------------------------------
On Feb. 17, 2016, 11:16 p.m., Lav Jain wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43682/
> -----------------------------------------------------------
>
> (Updated Feb. 17, 2016, 11:16 p.m.)
>
>
> Review request for Ambari, Alexander Denissov, Alejandro Fernandez, Andrew Onischuk, bhuvnesh chaudhary, Dmitro Lisnichenko, Jaimin Jetly, jun aoki, Jayush Luniya, Matt, Newton Alex, and Oleksandr Diachenko.
>
>
> Bugs: AMBARI-15080
> https://issues.apache.org/jira/browse/AMBARI-15080
>
>
> Repository: ambari
>
>
> Description
> -------
>
> ```
> [root@c6401 ambari-server]# python
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> [root@c6401 ambari-server]# mvn test
> .
> .
> .
> ----------------------------------------------------------------------
> Failed tests:
> ERROR: Failed to load test files ['test_phoenix_queryserver', 'test_hbase_master', 'test_hbase_client', 'test_hbase_service_check', 'test_hbase_regionserver']
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "unitTests.py", line 120, in stack_test_executor
> modules]
> File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
> module = __import__('.'.join(parts_copy))
> File "/root/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 21, in <module>
> from unittest import SkipTest
> ImportError: cannot import name SkipTest
>
> ----------------------------------------------------------------------
> ```
>
>
> Diffs
> -----
>
> ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 7722af0
>
> Diff: https://reviews.apache.org/r/43682/diff/
>
>
> Testing
> -------
>
> Tested manually using python 2.6 and python 2.7
>
>
> Thanks,
>
> Lav Jain
>
>
Re: Review Request 43682: HBase unittest fails when using python 2.6
Posted by Matt <mi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43682/#review119565
-----------------------------------------------------------
ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py (line 160)
<https://reviews.apache.org/r/43682/#comment180910>
unittest2 library in Python 2.6 has test skipping feature.
You may use that here if you find it is appropriate.
- Matt
On Feb. 17, 2016, 3:16 p.m., Lav Jain wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43682/
> -----------------------------------------------------------
>
> (Updated Feb. 17, 2016, 3:16 p.m.)
>
>
> Review request for Ambari, Alexander Denissov, Alejandro Fernandez, Andrew Onischuk, bhuvnesh chaudhary, Dmitro Lisnichenko, Jaimin Jetly, jun aoki, Jayush Luniya, Matt, Newton Alex, and Oleksandr Diachenko.
>
>
> Bugs: AMBARI-15080
> https://issues.apache.org/jira/browse/AMBARI-15080
>
>
> Repository: ambari
>
>
> Description
> -------
>
> ```
> [root@c6401 ambari-server]# python
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> [root@c6401 ambari-server]# mvn test
> .
> .
> .
> ----------------------------------------------------------------------
> Failed tests:
> ERROR: Failed to load test files ['test_phoenix_queryserver', 'test_hbase_master', 'test_hbase_client', 'test_hbase_service_check', 'test_hbase_regionserver']
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "unitTests.py", line 120, in stack_test_executor
> modules]
> File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
> module = __import__('.'.join(parts_copy))
> File "/root/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 21, in <module>
> from unittest import SkipTest
> ImportError: cannot import name SkipTest
>
> ----------------------------------------------------------------------
> ```
>
>
> Diffs
> -----
>
> ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 7722af0
>
> Diff: https://reviews.apache.org/r/43682/diff/
>
>
> Testing
> -------
>
> Tested manually using python 2.6 and python 2.7
>
>
> Thanks,
>
> Lav Jain
>
>
Re: Review Request 43682: HBase unittest fails when using python 2.6
Posted by bhuvnesh chaudhary <bc...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43682/#review119549
-----------------------------------------------------------
Ship it!
Ship It!
- bhuvnesh chaudhary
On Feb. 17, 2016, 11:16 p.m., Lav Jain wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43682/
> -----------------------------------------------------------
>
> (Updated Feb. 17, 2016, 11:16 p.m.)
>
>
> Review request for Ambari, Alexander Denissov, Alejandro Fernandez, Andrew Onischuk, bhuvnesh chaudhary, Dmitro Lisnichenko, Jaimin Jetly, jun aoki, Jayush Luniya, Matt, Newton Alex, and Oleksandr Diachenko.
>
>
> Bugs: AMBARI-15080
> https://issues.apache.org/jira/browse/AMBARI-15080
>
>
> Repository: ambari
>
>
> Description
> -------
>
> ```
> [root@c6401 ambari-server]# python
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> [root@c6401 ambari-server]# mvn test
> .
> .
> .
> ----------------------------------------------------------------------
> Failed tests:
> ERROR: Failed to load test files ['test_phoenix_queryserver', 'test_hbase_master', 'test_hbase_client', 'test_hbase_service_check', 'test_hbase_regionserver']
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "unitTests.py", line 120, in stack_test_executor
> modules]
> File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
> module = __import__('.'.join(parts_copy))
> File "/root/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 21, in <module>
> from unittest import SkipTest
> ImportError: cannot import name SkipTest
>
> ----------------------------------------------------------------------
> ```
>
>
> Diffs
> -----
>
> ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 7722af0
>
> Diff: https://reviews.apache.org/r/43682/diff/
>
>
> Testing
> -------
>
> Tested manually using python 2.6 and python 2.7
>
>
> Thanks,
>
> Lav Jain
>
>