Академический Документы
Профессиональный Документы
Культура Документы
Storage
System
Acceptance
test guide
Huawei Technologies Co.,
Ltd
Copyright © Huawei
Technologies Co., Ltd. 2019.
All rights reserved.
No part or all of the
contents of this document
may be copied or
reproduced without the
written permission of the
company, and may not be
transmitted in any form.
broadcast.
Trademark statement
And other Huawei
trademarks are trademarks
of Huawei Technologies Co.,
Ltd.
All other trademarks or
registered trademarks
mentioned in this document
are the property of their
respective owners.
note
The products, services or
features you purchase shall
be subject to Huawei's
commercial contracts and
terms, all or part of the
products and services
described in this document.
Or features may not be
within your purchase or use.
Huawei Corporation makes
no express or implied
consent to the contents of
this document unless
otherwise agreed in the
contract.
Statement or guarantee.
The contents of this
document may be updated
from time to time due to
product version upgrades or
other reasons. Unless
otherwise agreed, this
document is intended as a
guide only.
All statements, information
and recommendations in the
documentation do not
constitute any warranty,
express or implied.
Huawei
Technologies Co.,
Ltd
Office Building, Huatian
Headquarters, Putian,
地址:
Longgang District,
Shenzhen, China 518129
网址: http://e.huawei.com/cn/
2019-8-31 华为保密信息,未经授权禁止扩散 第 2 页, 共 6 页
table of Contents
1. Test cases..............................................
.................................................. ..........................3
1.1 T01-HDFS Basic Function
Test................................................
................................................3
1.2 T02-disk failure test................................................
.................................................. ........4
1.3 T03-Server Failure
Test................................................
.................................................. ....4
2019-8-31 Huawei confidential information,
unauthorized diffusion prohibited Page 3 of 61.
Test case
1.1 T01-HDFS basic function test
Test number T01-01 HDFS Basic function test
Verify Hadoop Commonly Create
Testing purposes Directory/Query/Delete/Download/Upload
Features
1. Big data cluster is running
normally
2. The connection between the big data
Preconditions cluster and the FusionStorage HDFS is
normal.
3. The big data client has been
installed and configured.
1. Create a folder and execute the
statement: hadoop fs -mkdir
/hdfs_test/mydir
2. View the folder and execute the
statement: hadoop fs -ls /hdfs_test/
3. Delete the folder and execute the
statement: hadoop fs -rm -r
/hdfs_test/mydir
4. View the folder and execute the
statement: hadoop fs -ls /hdfs_test/
5. Upload the local file (specify the
Testing process local file), execute the statement:
hadoop fs -put /tmp/testAccess.txt
/hdfs_test/ (where
"/tmp/testAccess.txt" is a local
file), and then execute the view
command to check the file is
No exists hadoop fs -ls /hdfs_test/
6. Download the file to the local,
execute the statement:hadoop fs -get
/hdfs_test/testAccess.txt /tmp/get
7. Delete the file, execute the
statement: hadoop fs -rm
/hdfs_test/testAccess.txt, and then
execute the view command check
Check if the file exists hadoop fs -ls
/hdfs_test/
1. The execution is successful and
there is no error message.
2. The query results contain the mydir
directory created in step 1.
3. The execution is successful and
there is no error message.
4. The query results have no mydir
directory.
5. The execution is successful, there
is no error message, the query command
query result can see the
expected results testAccess.txt file in the /tmp
directory.
Pieces.
6. The execution is successful, there
is no error message, check the local
"/tmp/get" directory under the
testAccess.txt file.
7. The execution is successful, there
is no error message, there is no
testAccess.txt file in the "/"
directory of the query command query
result.
expected results
Remarks