报错:创建租户失败-java.Lang.IlLegaLArgumentException: No constant org.apache.dolphinschedu

解决办法:查看 dolphinscheduler_install(注意不是dolphinscheduler目录)目录下的common.properties文件,需要检查的配置如下:

resource.storage.type=HDFS
resource.upload.path=/dolphinscheduler
hdfs.root.user=root (我是用root用户,所以这里填root,但是install_config.conf里面我指定了,在代码块此处我的位置就是空着的)

完整正确配置如下:

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

resource.storage.type=HDFS
#resource.storage.type=root

# resource store on HDFS/S3 path, resource file will store to this hadoop hdfs path, self configuration, please make sure the directory exists on hdfs and have read write permissions。"/dolphinscheduler" is recommended
resource.upload.path=/dolphinscheduler

# user data local directory path, please make sure the directory exists and have read write permissions
#data.basedir.path=/tmp/dolphinscheduler

# whether kerberos starts
hadoop.security.authentication.startup.state=false

# java.security.krb5.conf.path=/export/server/dolphinscheduler_install/conf/krb5.conf
java.security.krb5.conf.path=/export/server/dolphinscheduler_install/conf/krb5.conf

# login user from keytab username
login.user.keytab.username=hdfs-mycluster@ESZ.COM

# login user from keytab path
login.user.keytab.path=/export/server/dolphinscheduler_install/conf/hdfs.headless.keytab

#resource.view.suffixs
#resource.view.suffixs=txt,log,sh,conf,cfg,py,java,sql,hql,xml,properties

# if resource.storage.type=HDFS
hdfs.root.user=

# if resource.storage.type=HDFS
fs.defaultFS=hdfs://192.168.88.161:8020

# if resource.storage.type=HDFS
fs.s3a.endpoint=

# if resource.storage.type=HDFS
fs.s3a.access.key=

# if resource.storage.type=HDFS
fs.s3a.secret.key=

# if resourcemanager HA enable, please type the HA ips ; if resourcemanager is single, make this value empty
yarn.resourcemanager.ha.rm.ids=

# if resourcemanager HA enable or not use resourcemanager, please keep the default value; If resourcemanager is single, you only need to replace ds1 to actual resourcemanager hostname.
yarn.application.status.address=http://192.168.88.161:8088/ws/v1/cluster/apps/%s

# system env path
#dolphinscheduler.env.path=env/dolphinscheduler_env.sh
development.state=false
kerberos.expire.time=7

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐