diff --git a/inlong-agent/agent-installer/assembly.xml b/inlong-agent/agent-installer/assembly.xml new file mode 100644 index 00000000000..ad8b0cef4fc --- /dev/null +++ b/inlong-agent/agent-installer/assembly.xml @@ -0,0 +1,63 @@ + + + bin + + dir + tar.gz + + + false + + + + ../bin + + *.* + + + *rock* + + 0755 + bin + unix + + + + + conf + + *.* + + conf + unix + + + + + + false + true + lib + + + diff --git a/inlong-agent/agent-installer/conf/installer.properties b/inlong-agent/agent-installer/conf/installer.properties new file mode 100755 index 00000000000..52b4ce071f9 --- /dev/null +++ b/inlong-agent/agent-installer/conf/installer.properties @@ -0,0 +1,43 @@ +# +# 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. +# + +####################### +# common config +####################### +local.ip=127.0.0.1 +agent.enable.oom.exit=false + +############################ +# manager config +############################ +manager.addr=http://127.0.0.1:8083 +manager.auth.secretId= +manager.auth.secretKey= + +############################ +# cluster config for automatically report and register +############################ +cluster.tag=default_cluster +cluster.name=default_agent + +############################ +# audit config +############################ +# whether to enable audit +audit.enable=true +# audit proxy address +audit.proxys=127.0.0.1:10081 diff --git a/inlong-agent/agent-installer/conf/log4j2.xml b/inlong-agent/agent-installer/conf/log4j2.xml new file mode 100644 index 00000000000..3db2c5dee39 --- /dev/null +++ b/inlong-agent/agent-installer/conf/log4j2.xml @@ -0,0 +1,175 @@ + + + + + ${sys:agent.home}/logs + [%X{trace_id} %X{span_id}] %d{yyyy-MM-dd HH:mm:ss.SSS} -%5p ${PID:-} [%30.30t] %-30.30C{1.}:%L %m%n + 1 + 1G + INFO + 15 + ${basePath}/debug.log + ${basePath}/debug-%d{yyyy-MM-dd}-%i.log.gz + 10 + ${basePath}/info.log + ${basePath}/info-%d{yyyy-MM-dd}-%i.log.gz + 10 + ${basePath}/warn.log + ${basePath}/warn-%d{yyyy-MM-dd}-%i.log.gz + 10 + ${basePath}/error.log + ${basePath}/error-%d{yyyy-MM-dd}-%i.log.gz + 10 + INFO + 10 + ${basePath}/index.log + ${basePath}/index-%d{yyyy-MM-dd}-%i.log.gz + 10 + ${basePath}/monitors.log + ${basePath}/monitors-%d{yyyy-MM-dd}-%i.log.gz + 15d + + + + + + + + + + + + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/inlong-agent/agent-installer/pom.xml b/inlong-agent/agent-installer/pom.xml index fc7b4191a0d..45935dc20e3 100644 --- a/inlong-agent/agent-installer/pom.xml +++ b/inlong-agent/agent-installer/pom.xml @@ -39,12 +39,50 @@ agent-common ${project.version} compile + + + org.rocksdb + rocksdbjni + + org.apache.inlong agent-core ${project.version} compile + + + org.rocksdb + rocksdbjni + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + ${plugin.assembly.version} + + + make-assembly + + single + + package + + apache-inlong-agent-installer-${project.version} + + assembly.xml + + posix + + + + + +