You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Velmurugan Periasamy (JIRA)" <ji...@apache.org> on 2014/09/22 23:02:35 UTC

[jira] [Assigned] (ARGUS-75) Getting PatternSyntaxException on Windows while creating HDFS policy

     [ https://issues.apache.org/jira/browse/ARGUS-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Velmurugan Periasamy reassigned ARGUS-75:
-----------------------------------------

    Assignee: Velmurugan Periasamy

> Getting PatternSyntaxException on Windows while creating HDFS policy
> --------------------------------------------------------------------
>
>                 Key: ARGUS-75
>                 URL: https://issues.apache.org/jira/browse/ARGUS-75
>             Project: Argus
>          Issue Type: Bug
>            Reporter: Velmurugan Periasamy
>            Assignee: Velmurugan Periasamy
>
> Getting {quote} java.util.regex.PatternSyntaxException: Unexpected internal error near 
> index 1 {quote} while creating an HDFS policy with Policy Mgr and HDFS both running on windows.
> Resource Path used : /apps
> The code in question :
> {code}
> 	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());
> 			}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)