Repository: incubator-blur Updated Branches: refs/heads/master eec20f6ca -> c60ed1167
Removing an unused file. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/c60ed116 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/c60ed116 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/c60ed116 Branch: refs/heads/master Commit: c60ed1167c5ea34663799ef215e04fcf26477d8d Parents: eec20f6 Author: Aaron McCurry <[email protected]> Authored: Sat Dec 27 18:50:04 2014 -0500 Committer: Aaron McCurry <[email protected]> Committed: Sat Dec 27 18:50:04 2014 -0500 ---------------------------------------------------------------------- .../blur/store/MessingWithPermissions.java | 47 -------------------- 1 file changed, 47 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c60ed116/blur-store/src/main/java/org/apache/blur/store/MessingWithPermissions.java ---------------------------------------------------------------------- diff --git a/blur-store/src/main/java/org/apache/blur/store/MessingWithPermissions.java b/blur-store/src/main/java/org/apache/blur/store/MessingWithPermissions.java deleted file mode 100644 index 40eaef3..0000000 --- a/blur-store/src/main/java/org/apache/blur/store/MessingWithPermissions.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 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.blur.store; - -import java.io.IOException; -import java.security.PrivilegedExceptionAction; - -import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.FileStatus; -import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.fs.Path; -import org.apache.hadoop.security.UserGroupInformation; - -public class MessingWithPermissions { - - public static void main(String[] args) throws IOException, InterruptedException { - UserGroupInformation blur = UserGroupInformation.createRemoteUser("blur"); - final Path path = new Path("/permission_test/tables"); - final Configuration configuration = new Configuration(); - blur.doAs(new PrivilegedExceptionAction<Void>() { - @Override - public Void run() throws Exception { - FileSystem fileSystem = path.getFileSystem(configuration); - FileStatus[] listStatus = fileSystem.listStatus(path); - for (FileStatus status : listStatus) { - System.out.println(status.getPath()); - } - return null; - } - }); - } - -}
