diff options
author | Ravi Prakash <raviprak@altiscale.com> | 2016-04-21 11:32:39 -0700 |
---|---|---|
committer | Ravi Prakash <raviprak@altiscale.com> | 2016-04-21 11:32:39 -0700 |
commit | 4838b735f0d472765f402fe6b1c8b6ce85b9fbf1 (patch) | |
tree | 0291feaffddfaf0f3bb1e7bdf5eb5caa87e176a0 /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java | |
parent | 95a50466075c28110fa7c297e9c5246892076ca8 (diff) |
HADOOP-12563. Updated utility (dtutil) to create/modify token files. Contributed by Matthew Paduano
Diffstat (limited to 'hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java')
-rw-r--r-- | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java new file mode 100644 index 0000000000..c2bb8522e8 --- /dev/null +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/WebHdfsDtFetcher.java @@ -0,0 +1,39 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hdfs; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import org.apache.hadoop.hdfs.web.WebHdfsConstants; +import org.apache.hadoop.io.Text; + +/** + * DtFetcher for WebHdfsFileSystem using the base class HdfsDtFetcher impl. + */ +public class WebHdfsDtFetcher extends HdfsDtFetcher { + private static final Log LOG = LogFactory.getLog(WebHdfsDtFetcher.class); + + private static final String SERVICE_NAME = WebHdfsConstants.WEBHDFS_SCHEME; + + @Override + public Text getServiceName() { + return new Text(SERVICE_NAME); + } +} |