[
https://issues.apache.org/jira/browse/AMBARI-19531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15875553#comment-15875553
]
Xiaolu Zhao commented on AMBARI-19531:
--------------------------------------
Ambari-view 2.4.1
Hive View 1.0 & Hive View 1.5
Found the same issue when username begins with numerical value. e.g. username:
1702smith, Ambari Hive View fails 'userhome' check though home directory exists
and is properly owned by the user. Username begins with alphabet characters
has no problem. Stack trace will show the following error:
Service 'userhome' check failed:
java.lang.IllegalArgumentException: Invalid value: "1702smith" does not belong
to the domain ^[A-Za-z_][A-Za-z0-9._-]*[$]?$
at
org.apache.hadoop.hdfs.web.resources.StringParam$Domain.parse(StringParam.java:53)
at
org.apache.hadoop.hdfs.web.resources.StringParam.<init>(StringParam.java:25)
at
org.apache.hadoop.hdfs.web.resources.UserParam.<init>(UserParam.java:68)
at
org.apache.hadoop.hdfs.web.resources.UserParam.<init>(UserParam.java:75)
An old issue on WebHDFS has similar problem in the past, see
https://issues.apache.org/jira/browse/HDFS-4983
> Ambari Hive View 'userhome' check fails when username is all numeric
> --------------------------------------------------------------------
>
> Key: AMBARI-19531
> URL: https://issues.apache.org/jira/browse/AMBARI-19531
> Project: Ambari
> Issue Type: Bug
> Components: ambari-views
> Affects Versions: 2.4.1
> Environment: HDP 2.4.2
> Reporter: Hari Sekhon
> Attachments: Ambari_Hive_View_UserID_invalid_value.png
>
>
> Ambari Hive View does not expect all numeric username and fails 'userhome'
> check even though the home directory exists and is properly owned by the user
> because the regex does not have numbers permitted in the first char.
> Screenshot attached.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)