298 Commits

Author SHA1 Message Date
Xiaobing Zhou
dbdd97d057 HDFS-10394. move declaration of okhttp version from hdfs-client to hadoop-project POM. Contributed by Xiaobing Zhou. 2017-03-16 18:13:55 -07:00
Arpit Agarwal
8dc8ecbb91 HDFS-10838. Last full block report received time for each DN should be easily discoverable. Contributed by Surendra Singh Lilhore. 2017-03-06 16:40:00 -08:00
Yiqun Lin
5b49a96328 HDFS-8741. Proper error msg to be printed when invalid operation type is given to WebHDFS operations. Contributed by Surendra Singh Lilhore.
(cherry picked from commit 3536ce031ca780d6de83cf67779f571a0142ccc8)
2017-03-06 19:05:43 +08:00
Wei-Chiu Chuang
f3cdf29af4 HDFS-8498. Blocks can be committed with wrong size. Contributed by Jing Zhao. 2017-02-25 21:13:51 -08:00
Xiaoyu Yao
d72f1c5976 HDFS-11409. DatanodeInfo getNetworkLocation and setNetworkLocation shoud use volatile instead of synchronized. Contributed by Chen Liang.
(cherry picked from commit aaf27132350547fcde1fdb372f19626838f44bc4)
2017-02-14 12:55:49 -08:00
Kihwal Lee
33c62d2d19 HDFS-11379. DFSInputStream may infinite loop requesting block locations. Contributed by Daryn Sharp. 2017-02-10 12:52:14 -06:00
Xiao Chen
b0a1703f10 HDFS-11363. Need more diagnosis info when seeing Slow waitForAckedSeqno.
(cherry picked from commit 0914fcca312b5e9d20bcf1b6633bc13c9034ba46)
2017-02-02 10:09:20 -08:00
Arpit Agarwal
b4078e1d0e HDFS-11194. Maintain aggregated peer performance metrics on NameNode. 2017-01-24 19:34:33 -08:00
Ming Ma
bed700e98f HDFS-11296. Maintenance state expiry should be an epoch time and not jvm monotonic. (Manoj Govindassamy via mingma)
(cherry picked from commit f3fb94be05a61a4c4c06ab279897e5de2b181b0e)
2017-01-19 22:33:43 -08:00
Arpit Agarwal
954dae26cd HDFS-11337. (HDFS-10958 backport). Add instrumentation hooks around Datanode disk IO. 2017-01-16 13:53:30 -08:00
Andrew Wang
b089e122b1 HDFS-11312. Fix incompatible tag number change for nonDfsUsed in DatanodeInfoProto. Contributed by Sean Mackrory.
(cherry picked from commit d51f8ba80816c20cd97ba5aa839a84b0bb6a7291)
2017-01-11 15:13:41 -08:00
Haohui Mai
20486730e8 HDFS-11280. Allow WebHDFS to reuse HTTP connections to NN. Contributed by Zheng Shao. 2017-01-04 21:03:05 -08:00
Andrew Wang
d4ca1c5226 HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang. 2017-01-04 15:10:15 -08:00
Andrew Wang
2b5b62f9cc Revert "HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang."
This reverts commit 80e664084894bbff9b1cc3102e71b161873fb6ef.
2017-01-03 11:12:53 -08:00
Andrew Wang
80e6640848 HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang.
(cherry picked from commit 7fcc73fc0d248aae1edbd4e1514c5818f6198928)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
2017-01-03 09:58:45 -08:00
Brahma Reddy Battula
029b6fbe71 Revert "HDFS-11280. Allow WebHDFS to reuse HTTP connections to NN. Contributed by Zheng Shao."
This reverts commit 1bc9b316ba60b1ecc8d6fca8d78642933d2c186b.
2017-01-03 19:26:44 +05:30
Haohui Mai
1bc9b316ba HDFS-11280. Allow WebHDFS to reuse HTTP connections to NN. Contributed by Zheng Shao. 2016-12-30 22:59:24 -08:00
Andrew Wang
6b795c34d0 HDFS-10684. WebHDFS DataNode calls fail without parameter createparent. Contributed by John Zhuge.
(cherry picked from commit fbdbbd57cdc3d8c778fca9266a7cadf298c8ff6c)
2016-12-13 18:01:35 -08:00
Vinayakumar B
c6fb9f0d0b HDFS-10570. Remove classpath conflicts of netty-all jar in hadoop-hdfs-client (Contributed by Vinayakumar B) 2016-12-12 12:11:11 +05:30
Andrew Wang
215abbdf5f HDFS-8630. WebHDFS : Support get/set/unset StoragePolicy. Contributed by Surendra Singh Lilhore. 2016-12-09 14:29:22 -08:00
Vinayakumar B
4b21b47f56 HDFS-9057. allow/disallow snapshots via webhdfs (Contributed by Brahma Reddy Battula)
(cherry picked from commit 6d2332ae375e26d024358c6e75fdb3c68a781a66)
2016-12-07 15:58:15 -08:00
Andrew Wang
6a2f239d9e Revert "HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang"
This reverts commit be969e591883aa6cdd69bb62cea4e8904ece65f1.
2016-12-05 23:09:14 -08:00
Mingliang Liu
be969e5918 HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang
(cherry picked from commit c7ff34f8dcca3a2024230c5383abd9299daa1b20)
2016-12-02 11:36:11 -08:00
Kihwal Lee
f08e227671 HDFS-8870. Lease is leaked on write failure. Contributed by Kuhu Shukla.
(cherry picked from commit 4fcea8a0c8019d6d9a5e6f315c83659938b93a40)
2016-11-15 14:51:34 -06:00
Mingliang Liu
4e0fcff8ab HADOOP-13427. Eliminate needless uses of FileSystem#{exists(), isFile(), isDirectory()}. Contributed by Steve Loughran and Mingliang Liu
(cherry picked from commit 5af572b6443715b7a741296c1bd520a1840f9a7c)
2016-11-15 11:36:08 -08:00
Brahma Reddy Battula
53ff3c9e03 HDFS-9482. Replace DatanodeInfo constructors with a builder pattern. Contributed by Brahma Reddy Battula. 2016-11-09 09:58:36 +05:30
Andrew Wang
4f25fd975e HADOOP-13789. Hadoop Common includes generated test protos in both jar and test-jar. Contributed by Sean Busbey.
(cherry picked from commit e1c6ef2efa9d87fdfc7474ca63998a13a3929874)
2016-11-08 16:33:58 -08:00
Xiao Chen
f30d338766 HDFS-10756. Expose getTrashRoot to HTTPFS and WebHDFS. Contributed by Yuanbo Liu.
(cherry picked from commit d8bab3dcb693b2773ede9a6e4f71ae85ee056f79)
2016-11-04 18:08:46 -07:00
Masatake Iwasaki
7e918637de HADOOP-13017. Implementations of InputStream.read(buffer, offset, bytes) to exit 0 if bytes==0. Contributed by Steve Loughran.
(cherry picked from commit 0bdd263d82a4510f16df49238d57c9f78ac28ae7)
2016-10-27 15:54:03 +09:00
Kihwal Lee
366ebb0822 HDFS-11050. Change log level to 'warn' when ssl initialization fails and defaults to DEFAULT_TIMEOUT_CONN_CONFIGURATOR. Contributed by Kuhu Shukla.
(cherry picked from commit ce6bbfb23c9aafaf1aaeaeceba88286d4270b316)
2016-10-26 08:11:12 -05:00
Xiao Chen
ad7d3c4db8 HDFS-11009. Add a tool to reconstruct block meta file from CLI.
(cherry picked from commit bc4a32aea50e86819730312e89315c0244ce64bf)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetUtil.java
2016-10-18 22:40:58 -07:00
Akira Ajisaka
35832901e8 HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J.
(cherry picked from commit 5ad037df25ab3206509083276b7ef4ef001be48b)
2016-10-15 22:17:55 +09:00
Andrew Wang
86325e4346 HDFS-10883. 's behavior is not consistent in DFS after enabling EZ. Contributed by Yuanbo Liu.
(cherry picked from commit 0007360c3344b3485fa17de0fd2015a628de947c)
2016-10-14 11:41:36 -07:00
Benoy Antony
156b92e36b HDFS-10735 Distcp using webhdfs on secure HA clusters fails with StandbyException
(cherry picked from commit 701c27a7762294e1a5fb2b3ac81f5534aa37f667)
2016-10-14 10:29:42 -07:00
Chris Nauroth
a28ffd0fde HADOOP-13150. Avoid use of toString() in output of HDFS ACL shell commands. Contributed by Chris Nauroth.
(cherry picked from commit 1d330fbaf6b50802750aa461640773fb788ef884)
2016-10-06 13:22:35 -07:00
Xiao Chen
d9b686a2bd HDFS-10918. Add a tool to get FileEncryptionInfo from CLI. Contributed by Xiao Chen.
(cherry picked from commit 853d65a157362661ccab10379c2d82e780382f83)
2016-10-03 16:02:07 -07:00
Xiaoyu Yao
6f3744195d HDFS-10690. Optimize insertion/removal of replica in ShortCircuitCache. Contributed by Fenghua Hu.
(cherry picked from commit 607705c488fa5263d851cee578a2d319e6e52ecd)
2016-10-03 11:00:15 -07:00
Kihwal Lee
10222cd54e HDFS-10850. getEZForPath should NOT throw FNF. Contributed by Andrew Wang.
(cherry picked from commit 0670149c88852cd7c4d6774bff06c7c588558739)
2016-09-30 08:58:38 -05:00
Andrew Wang
b12f004474 HDFS-10914. Move remnants of oah.hdfs.client to hadoop-hdfs-client.
(cherry picked from commit 92e5e9159850c01635091ea6ded0d8ee76691a9a)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/HdfsAdmin.java
2016-09-28 16:03:16 -07:00
Wei-Chiu Chuang
bde787db23 HDFS-10609. Uncaught InvalidEncryptionKeyException during pipeline recovery may abort downstream applications. Contributed by Wei-Chiu Chuang.
(cherry picked from commit 3ae652f82110a52bf239f3c1849b48981558eb19)
2016-09-26 14:44:48 -07:00
Xiao Chen
b6a60d715d HDFS-10489. Deprecate dfs.encryption.key.provider.uri for HDFS encryption zones. Contributed by Xiao Chen.
(cherry picked from commit ea839bd48e4478fc7b6d0a69e0eaeae2de5e0f0d)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/HdfsConfiguration.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
2016-09-19 16:38:18 -07:00
Andrew Wang
b03a0be7a3 HDFS-10823. Implement HttpFSFileSystem#listStatusIterator.
(cherry picked from commit 8a40953058d50d421d62b71067a13b626b3cba1f)
2016-09-16 15:37:49 -07:00
Andrew Wang
abaad976cd HDFS-10837. Standardize serializiation of WebHDFS DirectoryListing.
(cherry picked from commit db6d243cf89d25fefbffd4c8721e14d9246b5a16)
2016-09-13 11:02:43 -07:00
Andrew Wang
72ea641468 HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao.
(cherry picked from commit b07c266dca7f303c793b432a0738d593728cf2b3)
2016-09-08 18:30:26 -07:00
Arpit Agarwal
f9415b7a7e HDFS-9038. DFS reserved space is erroneously counted towards non-DFS used. (Brahma Reddy Battula) 2016-09-06 13:44:22 -07:00
Lei Xu
d6bfb2176c HDFS-10822. Log DataNodes in the write pipeline. John Zhuge via Lei Xu
(cherry picked from commit 5a8c5064d1a1d596b1f5c385299a86ec6ab9ad1e)
2016-09-02 11:02:38 -07:00
Andrew Wang
72d90cbe32 HDFS-10784. Implement WebHdfsFileSystem#listStatusIterator.
(cherry picked from commit 85bab5fb572194fda38854f1f21c670925058009)
2016-08-31 14:33:14 -07:00
Allen Wittenauer
72334a4be3 HDFS-7766. Add a flag to WebHDFS op=CREATE to not respond with a 307 redirect (Ravi Prakash via aw)
(cherry picked from commit 4b0f55b6ea1665e2118fd573f72a6fcd1fce20d6)
2016-08-31 14:33:10 -07:00
Ming Ma
56c9a96a76 HDFS-9392. Admins support for maintenance state. Contributed by Ming Ma.
(cherry picked from commit 9dcbdbdb5a34d85910707f81ebc1bb1f81c99978)
2016-08-30 14:09:18 -07:00
Wei-Chiu Chuang
d19e29bd68 HDFS-8986. Add option to -du to calculate directory space usage excluding snapshots. Contributed by Xiao Chen. 2016-08-24 08:49:54 -07:00