This is an automated email from the ASF dual-hosted git repository. stevel pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/hadoop-release-support.git
commit 1404965598ff87e238aa83c24732e4179c553177 Author: Steve Loughran <ste...@cloudera.com> AuthorDate: Tue May 10 19:23:09 2022 +0100 using java util logging --- .../github/steveloughran/validator/CompileFS.java | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/main/java/com/github/steveloughran/validator/CompileFS.java b/src/main/java/com/github/steveloughran/validator/CompileFS.java new file mode 100644 index 0000000..b02ebac --- /dev/null +++ b/src/main/java/com/github/steveloughran/validator/CompileFS.java @@ -0,0 +1,46 @@ +/* + * 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 com.github.steveloughran.validator; + +import java.io.IOException; +import java.util.logging.Logger; +import java.util.logging.Level; + +import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.fs.FileSystem; + +/** + * + */ +public class CompileFS { + + + public FileSystem run() throws IOException { + final FileSystem fs = FileSystem.getLocal(new Configuration()); + Logger log = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); + log.log(Level.INFO,"fs is {)", fs); + return fs; + } + public static void main(String[] args) throws Exception { + new CompileFS().run(); + } + +} + + --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org