Class MapRCliCommands

java.lang.Object
org.apache.hadoop.conf.Configured
com.mapr.fs.clicommands.MapRCliCommands
All Implemented Interfaces:
com.mapr.baseutils.utils.AceHelper.FSPermission, org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class MapRCliCommands extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool, com.mapr.baseutils.utils.AceHelper.FSPermission
Provide command line access to a FileSystem.
  • Field Details

    • RecursiveBit

      public static int RecursiveBit
    • DirOnlyBit

      public static int DirOnlyBit
    • DiskBlockOnlyBit

      public static int DiskBlockOnlyBit
    • DereferenceSymlinkBit

      public static int DereferenceSymlinkBit
    • SingleVolumeBit

      public static int SingleVolumeBit
    • FidBit

      public static int FidBit
    • NoFidMap

      public static int NoFidMap
    • LiteLsBit

      public static int LiteLsBit
    • fs

      protected static MapRFileSystem fs
    • dateForm

      public static final SimpleDateFormat dateForm
    • modifFmt

      protected static final SimpleDateFormat modifFmt
    • multiAceArg

      public static final String multiAceArg
      See Also:
    • fsAccessTypeMap

      public static final Map<com.mapr.fs.proto.Common.FSAccessType,String> fsAccessTypeMap
  • Constructor Details

    • MapRCliCommands

      public MapRCliCommands(org.apache.hadoop.conf.Configuration conf)
    • MapRCliCommands

      public MapRCliCommands()
  • Method Details

    • init

      protected void init() throws IOException
      Throws:
      IOException
    • compareIPAddress

      public static boolean compareIPAddress(com.mapr.fs.proto.Common.IPAddress a, com.mapr.fs.proto.Common.IPAddress b)
    • tierOp

      public int tierOp(com.mapr.fs.cldb.proto.CLDBProto.FileTierOp op, String path, boolean verbose) throws IOException
      Throws:
      IOException
    • setSecurityPolicyTag

      public int setSecurityPolicyTag(String securityPolicyTags, String path, boolean isSet, boolean recursive) throws IOException
      Throws:
      IOException
    • getSecurityPolicyTag

      public int getSecurityPolicyTag(String path, boolean recursive) throws IOException
      Throws:
      IOException
    • removeSecurityPolicyTag

      public int removeSecurityPolicyTag(String securityPolicyTags, String path, boolean recursive) throws IOException
      Throws:
      IOException
    • removeAllSecurityPolicyTags

      public int removeAllSecurityPolicyTags(String path, boolean recursive) throws IOException
      Throws:
      IOException
    • run

      public int run(String[] argv) throws Exception
      run
      Specified by:
      run in interface org.apache.hadoop.util.Tool
      Throws:
      Exception
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getCliParam

      public String getCliParam(String key) throws IOException
      Specified by:
      getCliParam in interface com.mapr.baseutils.utils.AceHelper.FSPermission
      Throws:
      IOException
    • main

      public static void main(String[] argv) throws Exception
      main() has some simple utility methods
      Throws:
      Exception