kezhenxu94
3 years ago
committed by
GitHub
14 changed files with 170 additions and 244 deletions
@ -0,0 +1 @@
|
||||
Subproject commit 2fc905b1875f2e6b91c4201a4dc6eaa21b86547e |
@ -0,0 +1,53 @@
|
||||
# |
||||
# 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. |
||||
# |
||||
|
||||
name: "Sanity Check" |
||||
|
||||
description: | |
||||
Action to perform some very basic lightweight checks, like code styles, license headers, etc., |
||||
and fail fast to avoid wasting resources running heavyweight checks, like unit tests, e2e tests. |
||||
|
||||
inputs: |
||||
token: |
||||
description: 'The GitHub API token' |
||||
required: false |
||||
|
||||
runs: |
||||
using: "composite" |
||||
steps: |
||||
- name: Check License Header |
||||
uses: apache/skywalking-eyes@a63f4afcc287dfb3727ecc45a4afc55a5e69c15f |
||||
|
||||
- uses: ./.github/actions/reviewdog-setup |
||||
with: |
||||
reviewdog_version: v0.10.2 |
||||
|
||||
- shell: bash |
||||
run: ./mvnw -B -q checkstyle:checkstyle-aggregate |
||||
|
||||
- shell: bash |
||||
env: |
||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ inputs.token }} |
||||
run: | |
||||
if [[ -n "${{ inputs.token }}" ]]; then |
||||
reviewdog -f=checkstyle \ |
||||
-reporter="github-pr-check" \ |
||||
-filter-mode="added" \ |
||||
-fail-on-error="true" < target/checkstyle-result.xml |
||||
fi |
@ -1,104 +0,0 @@
|
||||
#!/bin/sh |
||||
# |
||||
# 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. |
||||
# |
||||
|
||||
workDir=`dirname $0` |
||||
workDir=`cd ${workDir};pwd` |
||||
|
||||
source ${workDir}/conf/config/install_config.conf |
||||
|
||||
# 1.replace file |
||||
echo "1.replace file" |
||||
|
||||
txt="" |
||||
if [[ "$OSTYPE" == "darwin"* ]]; then |
||||
# Mac OSX |
||||
txt="''" |
||||
fi |
||||
|
||||
datasourceDriverClassname="com.mysql.jdbc.Driver" |
||||
if [ $dbtype == "postgresql" ];then |
||||
datasourceDriverClassname="org.postgresql.Driver" |
||||
fi |
||||
sed -i ${txt} "s@^spring.datasource.driver-class-name=.*@spring.datasource.driver-class-name=${datasourceDriverClassname}@g" conf/datasource.properties |
||||
sed -i ${txt} "s@^spring.datasource.url=.*@spring.datasource.url=jdbc:${dbtype}://${dbhost}/${dbname}?characterEncoding=UTF-8\&allowMultiQueries=true@g" conf/datasource.properties |
||||
sed -i ${txt} "s@^spring.datasource.username=.*@spring.datasource.username=${username}@g" conf/datasource.properties |
||||
sed -i ${txt} "s@^spring.datasource.password=.*@spring.datasource.password=${password}@g" conf/datasource.properties |
||||
|
||||
sed -i ${txt} "s@^data.basedir.path=.*@data.basedir.path=${dataBasedirPath}@g" conf/common.properties |
||||
sed -i ${txt} "s@^resource.storage.type=.*@resource.storage.type=${resourceStorageType}@g" conf/common.properties |
||||
sed -i ${txt} "s@^resource.upload.path=.*@resource.upload.path=${resourceUploadPath}@g" conf/common.properties |
||||
sed -i ${txt} "s@^hadoop.security.authentication.startup.state=.*@hadoop.security.authentication.startup.state=${kerberosStartUp}@g" conf/common.properties |
||||
sed -i ${txt} "s@^java.security.krb5.conf.path=.*@java.security.krb5.conf.path=${krb5ConfPath}@g" conf/common.properties |
||||
sed -i ${txt} "s@^login.user.keytab.username=.*@login.user.keytab.username=${keytabUserName}@g" conf/common.properties |
||||
sed -i ${txt} "s@^login.user.keytab.path=.*@login.user.keytab.path=${keytabPath}@g" conf/common.properties |
||||
sed -i ${txt} "s@^kerberos.expire.time=.*@kerberos.expire.time=${kerberosExpireTime}@g" conf/common.properties |
||||
sed -i ${txt} "s@^hdfs.root.user=.*@hdfs.root.user=${hdfsRootUser}@g" conf/common.properties |
||||
sed -i ${txt} "s@^fs.defaultFS=.*@fs.defaultFS=${defaultFS}@g" conf/common.properties |
||||
sed -i ${txt} "s@^fs.s3a.endpoint=.*@fs.s3a.endpoint=${s3Endpoint}@g" conf/common.properties |
||||
sed -i ${txt} "s@^fs.s3a.access.key=.*@fs.s3a.access.key=${s3AccessKey}@g" conf/common.properties |
||||
sed -i ${txt} "s@^fs.s3a.secret.key=.*@fs.s3a.secret.key=${s3SecretKey}@g" conf/common.properties |
||||
sed -i ${txt} "s@^resource.manager.httpaddress.port=.*@resource.manager.httpaddress.port=${resourceManagerHttpAddressPort}@g" conf/common.properties |
||||
sed -i ${txt} "s@^yarn.resourcemanager.ha.rm.ids=.*@yarn.resourcemanager.ha.rm.ids=${yarnHaIps}@g" conf/common.properties |
||||
sed -i ${txt} "s@^yarn.application.status.address=.*@yarn.application.status.address=http://${singleYarnIp}:%s/ws/v1/cluster/apps/%s@g" conf/common.properties |
||||
sed -i ${txt} "s@^yarn.job.history.status.address=.*@yarn.job.history.status.address=http://${singleYarnIp}:19888/ws/v1/history/mapreduce/jobs/%s@g" conf/common.properties |
||||
sed -i ${txt} "s@^sudo.enable=.*@sudo.enable=${sudoEnable}@g" conf/common.properties |
||||
|
||||
# the following configurations may be commented, so ddd #\? to ensure successful sed |
||||
sed -i ${txt} "s@^#\?worker.tenant.auto.create=.*@worker.tenant.auto.create=${workerTenantAutoCreate}@g" conf/worker.properties |
||||
sed -i ${txt} "s@^#\?alert.listen.host=.*@alert.listen.host=${alertServer}@g" conf/worker.properties |
||||
sed -i ${txt} "s@^#\?alert.plugin.dir=.*@alert.plugin.dir=${alertPluginDir}@g" conf/alert.properties |
||||
sed -i ${txt} "s@^#\?server.port=.*@server.port=${apiServerPort}@g" conf/application-api.properties |
||||
|
||||
sed -i ${txt} "s@^#\?registry.plugin.dir=.*@registry.plugin.dir=${registryPluginDir}@g" conf/registry.properties |
||||
sed -i ${txt} "s@^#\?registry.plugin.name=.*@registry.plugin.name=${registryPluginName}@g" conf/registry.properties |
||||
sed -i ${txt} "s@^#\?registry.servers=.*@registry.servers=${registryServers}@g" conf/registry.properties |
||||
|
||||
# 2.create directory |
||||
echo "2.create directory" |
||||
|
||||
if [ ! -d $installPath ];then |
||||
sudo mkdir -p $installPath |
||||
sudo chown -R $deployUser:$deployUser $installPath |
||||
fi |
||||
|
||||
# 3.scp resources |
||||
echo "3.scp resources" |
||||
sh ${workDir}/script/scp-hosts.sh |
||||
if [ $? -eq 0 ] |
||||
then |
||||
echo 'scp copy completed' |
||||
else |
||||
echo 'scp copy failed to exit' |
||||
exit 1 |
||||
fi |
||||
|
||||
|
||||
# 4.stop server |
||||
echo "4.stop server" |
||||
sh ${workDir}/script/stop-all.sh |
||||
|
||||
|
||||
# 5.delete zk node |
||||
echo "5.delete zk node" |
||||
|
||||
sh ${workDir}/script/remove-zk-node.sh $zkRoot |
||||
|
||||
|
||||
# 6.startup |
||||
echo "6.startup" |
||||
sh ${workDir}/script/start-all.sh |
@ -1,24 +0,0 @@
|
||||
<?xml version="1.0"?> |
||||
<!-- |
||||
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. |
||||
--> |
||||
<!DOCTYPE suppressions PUBLIC |
||||
"-//Puppy Crawl//DTD Suppressions 1.0//EN" |
||||
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> |
||||
|
||||
<suppressions> |
||||
|
||||
</suppressions> |
Loading…
Reference in new issue