Changing hdfs fs to hdfs dfs
The command hdfs fs has been deprecated in favor of hdfs dfs. Story: #2004952 Task: #29368 Change-Id: If8db759ab40ca858594498bc5e6f94f416da2545
This commit is contained in:
parent
7f8c565ddd
commit
21791d1f89
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
The command hdfs fs has been deprecated in favor of hdfs fs. This
|
||||
fixes will allow the use of Hbase service.
|
|
@ -39,7 +39,7 @@ def create_hbase_common_lib(r):
|
|||
paths = stdout.split(':')
|
||||
for p in paths:
|
||||
if p.endswith(".jar"):
|
||||
r.execute_command('sudo su - -c "hdfs fs -put -p %s %s" hdfs'
|
||||
r.execute_command('sudo su - -c "hdfs dfs -put -p %s %s" hdfs'
|
||||
% (p, HBASE_COMMON_LIB_PATH))
|
||||
else:
|
||||
raise ex.RequiredServiceMissingException('hbase')
|
||||
|
|
|
@ -40,7 +40,7 @@ class HDFSHelperTestCase(base.SaharaTestCase):
|
|||
mock.call(('sudo su - -c "hdfs dfs -mkdir -p '
|
||||
'/user/sahara-hbase-lib" hdfs')),
|
||||
mock.call('hbase classpath'),
|
||||
mock.call(('sudo su - -c "hdfs fs -put -p may.jar '
|
||||
mock.call(('sudo su - -c "hdfs dfs -put -p may.jar '
|
||||
'/user/sahara-hbase-lib" hdfs'))]
|
||||
self.cluster.execute_command.assert_has_calls(calls)
|
||||
|
||||
|
|
Loading…
Reference in New Issue