Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.10.0
-
None
-
None
Description
After investigating hostname pattern rule in NetworkAddressValidator, I found that Tajo do not allow hostname beginning with digits, e.g. 0.linewalks.local.
Even though IETF RFC953 has a constraint of starting alphabet in hostname, IETF RFC1123 lessens the limit by allowing fully numeric hostname to be valid. Therefore, I suggest that Tajo should change hostname pattern rule from "[a-zA-Z][-a-zA-Z0-9\\\\._]$" to "[a-zA-Z0-9][-a-zA-Z0-9\\\\._]$".
2015-01-09 14:21:15,838 ERROR org.apache.tajo.master.TajoMaster: Validation Test has been failed on tajo.master.umbilical-rpc.address. Actual value is 0.linewalks.local:26001 org.apache.tajo.rule.EvaluationFailedException: Validation Test has been failed on tajo.master.umbilical-rpc.address. Actual value is 0.linewalks.local:26001 at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:66) at org.apache.tajo.master.TajoMaster.diagnoseTajoMaster(TajoMaster.java:294) at org.apache.tajo.master.TajoMaster.serviceInit(TajoMaster.java:173) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.tajo.master.TajoMaster.main(TajoMaster.java:587) Caused by: org.apache.tajo.validation.ConstraintViolationException: ConstraintViolationException [0.linewalks.local:26001 is not a valid network address representation.] at org.apache.tajo.rule.base.TajoConfValidationRule.evaluate(TajoConfValidationRule.java:81) at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:63) ... 4 more 2015-01-09 14:21:15,839 INFO org.apache.hadoop.service.AbstractService: Service org.apache.tajo.master.TajoMaster failed in state INITED; cause: org.apache.tajo.rule.EvaluationFailedException: Validation Test has been failed on tajo.master.umbilical-rpc.address. Actual value is 0.linewalks.local:26001 org.apache.tajo.rule.EvaluationFailedException: Validation Test has been failed on tajo.master.umbilical-rpc.address. Actual value is 0.linewalks.local:26001 at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:66) at org.apache.tajo.master.TajoMaster.diagnoseTajoMaster(TajoMaster.java:294) at org.apache.tajo.master.TajoMaster.serviceInit(TajoMaster.java:173) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.tajo.master.TajoMaster.main(TajoMaster.java:587) Caused by: org.apache.tajo.validation.ConstraintViolationException: ConstraintViolationException [0.linewalks.local:26001 is not a valid network address representation.] at org.apache.tajo.rule.base.TajoConfValidationRule.evaluate(TajoConfValidationRule.java:81) at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:63) ... 4 more 2015-01-09 14:21:15,942 INFO org.apache.tajo.master.TajoMaster: Tajo Master main thread exiting 2015-01-09 14:21:15,942 FATAL org.apache.tajo.master.TajoMaster: Error starting TajoMaster org.apache.tajo.rule.EvaluationFailedException: Validation Test has been failed on tajo.master.umbilical-rpc.address. Actual value is 0.linewalks.local:26001 at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:66) at org.apache.tajo.master.TajoMaster.diagnoseTajoMaster(TajoMaster.java:294) at org.apache.tajo.master.TajoMaster.serviceInit(TajoMaster.java:173) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.tajo.master.TajoMaster.main(TajoMaster.java:587) Caused by: org.apache.tajo.validation.ConstraintViolationException: ConstraintViolationException [0.linewalks.local:26001 is not a valid network address representation.] at org.apache.tajo.rule.base.TajoConfValidationRule.evaluate(TajoConfValidationRule.java:81) at org.apache.tajo.rule.SelfDiagnosisRuleSession.fireRules(SelfDiagnosisRuleSession.java:63) ... 4 more