Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-75

Getting PatternSyntaxException on Windows while creating HDFS policy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Getting

      java.util.regex.PatternSyntaxException: Unexpected internal error near
      index 1

      while creating an HDFS policy with Policy Mgr and HDFS both running on windows.
      Resource Path used : /apps
      The code in question :

      	for (String resourceName : resourceList) {
      			String policyPath = resourceName;
      			*String[] policyPathParts = policyPath.split(File.separator);*
      			
      			if(policyPathParts.length>1){
      				pathList.add(File.separator);
      			}
      			
      			StringBuffer path = new StringBuffer();
      			for (int i = 1; i < policyPathParts.length - 1; i++) {
      				path.append(File.separator + policyPathParts[i]);
      				pathList.add(path.toString());
      			}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vel Velmurugan Periasamy
                Reporter:
                vel Velmurugan Periasamy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: