# process execute directory. self configuration, please make sure the directory exists and have read write permissions
process.exec.basepath=/tmp/escheduler/exec
process.exec.basepath=/tmp/dolphinscheduler/exec
# Users who have permission to create directories under the HDFS root path
hdfs.root.user=hdfs
# data base dir, resource file will store to this hadoop hdfs path, self configuration, please make sure the directory exists on hdfs and have read write permissions。"/escheduler" is recommended
data.store2hdfs.basepath=/escheduler
# data base dir, 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
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><title> dolphinscheduler</title><metaname='Keywords'content=''><metaname='Description'content=''><style type="text/css">table{margin-top:0px;padding-top:0px;border:1pxsolid;font-size:14px;color:#333333;border-width:1px;border-color:#666666;border-collapse:collapse;}tableth{border-width:1px;padding:8px;border-style:solid;border-color:#666666;background-color:#dedede;}tabletd{border-width:1px;padding:8px;border-style:solid;border-color:#666666;background-color:#ffffff;}</style></head><bodystyle="margin:0;padding:0"><tableborder="1px"cellpadding="5px"cellspacing="-10px"><thead><#iftitle??> ${title}</#if></thead><#ifcontent??> ${content}</#if></table></body></html>
left join (select process_definition_id,release_state as schedule_release_state from t_ds_schedules group by process_definition_id,release_state) sc on sc.process_definition_id = td.id
where td.project_id = #{projectId}
<iftest=" searchVal != null and searchVal != ''">
and td.name like concat('%', #{searchVal}, '%')
</if>
<iftest=" userId != 0">
and td.user_id = #{userId}
</if>
order by sc.schedule_release_state desc,td.update_time desc
(SELECT COUNT(*) FROM t_ds_process_definition AS def WHERE def.project_id = p.id) AS def_count,
(SELECT COUNT(*) FROM t_ds_process_definition def, t_ds_process_instance inst WHERE def.id = inst.process_definition_id AND def.project_id = p.id AND inst.state=1 ) as inst_running_count
from t_ds_project p
join t_ds_user u on u.id=p.user_id
where 1=1
<iftest="userId != 0">
and p.id in
(select project_id from t_ds_relation_project_user where user_id=#{userId}
union select id as project_id from t_ds_project where user_id=#{userId}
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><title> easyscheduler</title><metaname='Keywords'content=''><metaname='Description'content=''><style type="text/css">table{margin-top:0px;padding-top:0px;border:1pxsolid;font-size:14px;color:#333333;border-width:1px;border-color:#666666;border-collapse:collapse;}tableth{border-width:1px;padding:8px;border-style:solid;border-color:#666666;background-color:#dedede;}tabletd{border-width:1px;padding:8px;border-style:solid;border-color:#666666;background-color:#ffffff;}</style></head><bodystyle="margin:0;padding:0"><tableborder="1px"cellpadding="5px"cellspacing="-10px"><thead><#iftitle??> ${title}</#if></thead><#ifcontent??> ${content}</#if></table></body></html>
find /var/lib/mysql -type f -exectouch{}\;&& service mysql restart $ sleep 10
...
...
@@ -15,55 +15,55 @@ else
echo"设置mysql权限"
mysql --user=root --password=$MYSQL_ROOT_PWD-e"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '$MYSQL_ROOT_PWD' WITH GRANT OPTION; FLUSH PRIVILEGES;"
echo"创建escheduler数据库"
echo"创建dolphinscheduler数据库"
mysql --user=root --password=$MYSQL_ROOT_PWD-e"CREATE DATABASE IF NOT EXISTS \`$ESZ_DB\` CHARACTER SET utf8 COLLATE utf8_general_ci; FLUSH PRIVILEGES;"
if[`mysql --user=root --password=$MYSQL_ROOT_PWD-s-r-e"SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='escheduler';" | grep-v count`-eq 38 ];then
if[`mysql --user=root --password=$MYSQL_ROOT_PWD-s-r-e"SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dolphinscheduler';" | grep-v count`-eq 38 ];then
echo"\`$ESZ_DB\` 表个数正确"
else
echo"\`$ESZ_DB\` 表个数不正确"
mysql --user=root --password=$MYSQL_ROOT_PWD-e"DROP DATABASE \`$ESZ_DB\`;"
echo"创建escheduler数据库"
echo"创建dolphinscheduler数据库"
mysql --user=root --password=$MYSQL_ROOT_PWD-e"CREATE DATABASE IF NOT EXISTS \`$ESZ_DB\` CHARACTER SET utf8 COLLATE utf8_general_ci; FLUSH PRIVILEGES;"