AnsweredAssumed Answered

error in start-dfs.sh :  Illegal repetition near index 8 [jt]t@.*${KERBEROS_REALM}

Question asked by mahdiyeh on Jan 13, 2013
Latest reply on Feb 6, 2013 by peterconrad
hello everybody,
i want to install hadoop-0.23.5, but whet i star it iget the folowing error:

<pre>
[hdfs2@n1 hadoop-0.23.5]$ sbin/start-dfs.sh
13/01/14 06:49:05 WARN conf.Configuration: hdfs-site.xml:an attempt to override final parameter: dfs.namenode.http-address;  Ignoring.
13/01/14 06:49:06 WARN conf.Configuration: hdfs-site.xml:an attempt to override final parameter: dfs.namenode.http-address;  Ignoring.
13/01/14 06:49:06 WARN conf.Configuration: hdfs-site.xml:an attempt to override final parameter: dfs.namenode.http-address;  Ignoring.
13/01/14 06:49:06 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.cluster.local.dir;  Ignoring.
Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repetition near index 8
[jt]t@.*${KERBEROS_REALM}
        ^
        at java.util.regex.Pattern.error(Pattern.java:1713)
        at java.util.regex.Pattern.closure(Pattern.java:2775)
        at java.util.regex.Pattern.sequence(Pattern.java:1889)
        at java.util.regex.Pattern.expr(Pattern.java:1752)
        at java.util.regex.Pattern.compile(Pattern.java:1460)
        at java.util.regex.Pattern.<init>(Pattern.java:1133)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at org.apache.hadoop.security.authentication.util.KerberosName$Rule.<init>(KerberosName.java:189)
        at org.apache.hadoop.security.authentication.util.KerberosName.parseRules(KerberosName.java:325)
        at org.apache.hadoop.security.authentication.util.KerberosName.setRules(KerberosName.java:385)
        at org.apache.hadoop.security.HadoopKerberosName.setConfiguration(HadoopKerberosName.java:69)
        at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:227)
        at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:214)
        at org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:275)
        at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:497)
        at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:480)
        at org.apache.hadoop.hdfs.tools.GetConf.run(GetConf.java:270)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
        at org.apache.hadoop.hdfs.tools.GetConf.main(GetConf.java:283)
Starting namenodes on []
n1: starting namenode, logging to /hdfs2/hdfs2/hadoop-hdfs2-namenode-n1.out
n1: starting datanode, logging to /hdfs2/hdfs2/hadoop-hdfs2-datanode-n1.out
Starting secondary namenodes []
n1: starting secondarynamenode, logging to /hdfs2/hdfs2/hadoop-hdfs2-secondarynamenode-n1.out
</pre>


in core-site.xml file "hadoop.security.auth_to_local" is set as follows:
<code>
<property>
    <name>hadoop.security.auth_to_local</name>
    <value>
        RULE:[2:$1@$0]([jt]t@.*${KERBEROS_REALM})s/.*/${HADOOP_MR_USER}/
        RULE:[2:$1@$0]([nd]n@.*${KERBEROS_REALM})s/.*/${HADOOP_HDFS_USER}/
        RULE:[2:$1@$0](mapred@.*${KERBEROS_REALM})s/.*/${HADOOP_MR_USER}/
        RULE:[2:$1@$0](hdfs@.*${KERBEROS_REALM})s/.*/${HADOOP_HDFS_USER}/
        RULE:[2:$1@$0](mapredqa@.*${KERBEROS_REALM})s/.*/${HADOOP_MR_USER}/
        RULE:[2:$1@$0](hdfsqa@.*${KERBEROS_REALM})s/.*/${HADOOP_HDFS_USER}/
        RULE:[2:$1@$0](hm@.*${KERBEROS_REALM})s/.*/${HBASE_USER}/
        RULE:[2:$1@$0](rs@.*${KERBEROS_REALM})s/.*/${HBASE_USER}/
     DEFAULT
    </value>
    <description></description>
  </property>
</code>

does anybody know how could i fix this problem?
thanks in advance       

Outcomes