You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ji...@apache.org on 2024/08/08 06:11:37 UTC
(bigtop) branch docker_ambari created (now 9292a98bf)
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a change to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
at 9292a98bf fix
This branch includes the following new commits:
new 38616b66c add parent dir for phoenix
new 1c00f7d33 fix
new 3847b24e2 fix phoenix
new 41c454e16 fix
new c65035a1c fix phoenix
new 2a2e01a38 update kyuubi
new 9292a98bf fix
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(bigtop) 06/07: update kyuubi
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 2a2e01a3835c1a1d2ae795cd4d925b0829c9fe6b
Author: jialiang <ji...@gmail.com>
AuthorDate: Wed Aug 7 10:53:23 2024 +0800
update kyuubi
---
bigtop.bom | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bigtop.bom b/bigtop.bom
index 306445c05..729e06f04 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -429,7 +429,7 @@ bigtop {
rpm_pkg_suffix = "_" + bigtop.base_version.replace(".", "_")
maven_parallel_build = true
relNotes = 'Apache Kyuubi'
- version { base = '1.9.0'; pkg = base; release = 1 }
+ version { base = '1.9.2'; pkg = base; release = 1 }
tarball { destination = "$name-${version.base}.tar.gz"
source = "v${version.base}.tar.gz" }
url { site = "https://github.com/apache/kyuubi/archive/refs/tags"
(bigtop) 03/07: fix phoenix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 3847b24e28f5c8f713dffa57a6e026261930de54
Author: jialiang <ji...@gmail.com>
AuthorDate: Wed Jun 26 14:14:48 2024 +0800
fix phoenix
---
bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec | 25 +++++++++++-----------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
index 641d713a5..e482659d1 100644
--- a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
+++ b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
@@ -12,16 +12,17 @@
# 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.
-%define phoenix_home %{parent_dir}/usr/lib/%{name}
+%define phoenix_name phoenix
+%define phoenix_home %{parent_dir}/usr/lib/%{phoenix_name}
%define phoenix_pkg_name phoenix%{pkg_name_suffix}
%define bin_phoenix %{phoenix_home}/bin
%define lib_phoenix %{phoenix_home}/lib
%define examples_phoenix %{phoenix_home}/examples
-%define np_etc_phoenix = %{_sysconfdir}/%{name}
-%define etc_phoenix_conf = %{parent_dir}/%{_sysconfdir}/%{name}/conf
+%define np_etc_phoenix = %{_sysconfdir}/%{phoenix_name}
+%define etc_phoenix_conf = %{parent_dir}/%{_sysconfdir}/%{phoenix_name}/conf
%define etc_phoenix_conf_dist %{parent_dir}/%{np_etc_phoenix_conf}.dist
-%define var_lib_phoenix %{parent_dir}/var/lib/%{name}
-%define var_log_phoenix /var/log/%{name}
+%define var_lib_phoenix %{parent_dir}/var/lib/%{phoenix_name}
+%define var_log_phoenix /var/log/%{phoenix_name}
%define man_dir %{_mandir}
%define zookeeper_home %{parent_dir}/usr/lib/zookeeper
%define hadoop_home %{parent_dir}/usr/lib/hadoop
@@ -48,7 +49,7 @@
/usr/lib/rpm/brp-compress ; \
%{nil}
-%define doc_phoenix %{_docdir}/%{name}
+%define doc_phoenix %{_docdir}/%{phoenix_name}
%define alternatives_cmd update-alternatives
%else
@@ -70,7 +71,7 @@
%{nil}
%endif
-%define doc_phoenix %{_docdir}/%{name}-%{phoenix_version}
+%define doc_phoenix %{_docdir}/%{phoenix_name}-%{phoenix_version}
%define alternatives_cmd alternatives
%endif
@@ -81,9 +82,9 @@ Release: %{phoenix_release}
Summary: Phoenix is a SQL skin over HBase and client-embedded JDBC driver.
URL: http://phoenix.apache.org
Group: Development/Libraries
-Buildroot: %{_topdir}/INSTALL/%{name}-%{version}
+Buildroot: %{_topdir}/INSTALL/%{phoenix_name}-%{version}
License: ASL 2.0
-Source0: %{name}-%{phoenix_base_version}-src.tar.gz
+Source0: %{phoenix_name}-%{phoenix_base_version}-src.tar.gz
Source1: do-component-build
Source2: install_phoenix.sh
Source3: bigtop.bom
@@ -108,7 +109,7 @@ tens of millions of rows. Applications interact with Phoenix through a
standard JDBC interface; all the usual interfaces are supported.
%prep
-%setup -n %{name}-%{phoenix_base_version}
+%setup -n %{phoenix_name}-%{phoenix_base_version}
#BIGTOP_PATCH_COMMANDS
%build
@@ -129,11 +130,11 @@ getent group phoenix >/dev/null || groupadd -r phoenix
getent passwd phoenix >/dev/null || useradd -c "Phoenix" -s /sbin/nologin -g phoenix -r -d %{var_lib_phoenix} phoenix 2> /dev/null || :
%post
-%{alternatives_cmd} --install %{etc_phoenix_conf} %{name}-conf %{etc_phoenix_conf_dist} 30
+%{alternatives_cmd} --install %{etc_phoenix_conf} %{phoenix_name}-conf %{etc_phoenix_conf_dist} 30
%preun
if [ "$1" = 0 ]; then
- %{alternatives_cmd} --remove %{name}-conf %{etc_phoenix_conf_dist} || :
+ %{alternatives_cmd} --remove %{phoenix_name}-conf %{etc_phoenix_conf_dist} || :
fi
(bigtop) 01/07: add parent dir for phoenix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 38616b66c75fb70da41724979d8d694a86a50912
Author: jialiang <ji...@gmail.com>
AuthorDate: Wed Jun 26 13:57:02 2024 +0800
add parent dir for phoenix
---
.../src/common/phoenix/install_phoenix.sh | 8 ++++-
bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec | 39 ++++++++++------------
2 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/bigtop-packages/src/common/phoenix/install_phoenix.sh b/bigtop-packages/src/common/phoenix/install_phoenix.sh
index 1b8a77eaa..a0c2ec66c 100755
--- a/bigtop-packages/src/common/phoenix/install_phoenix.sh
+++ b/bigtop-packages/src/common/phoenix/install_phoenix.sh
@@ -27,6 +27,7 @@ usage: $0 <options>
Optional options:
--doc-dir=DIR path to install docs into [/usr/share/doc/phoenix]
--lib-dir=DIR path to install phoenix home [/usr/lib/phoenix]
+ --var-dir=DIR path to install phoenix contents [/var/lib/phoenix]
--installed-lib-dir=DIR path where lib-dir will end up on target system
--bin-dir=DIR path to install bins [/usr/bin]
--examples-dir=DIR path to install examples [doc-dir/examples]
@@ -43,6 +44,7 @@ OPTS=$(getopt \
-l 'lib-dir:' \
-l 'installed-lib-dir:' \
-l 'bin-dir:' \
+ -l 'var-dir:' \
-l 'examples-dir:' \
-l 'conf-dir:' \
-l 'build-dir:' -- "$@")
@@ -72,6 +74,9 @@ while true ; do
--bin-dir)
BIN_DIR=$2 ; shift 2
;;
+ --var-dir)
+ VAR_DIR=$2 ; shift 2
+ ;;
--examples-dir)
EXAMPLES_DIR=$2 ; shift 2
;;
@@ -100,6 +105,7 @@ MAN_DIR=${MAN_DIR:-/usr/share/man/man1}
DOC_DIR=${DOC_DIR:-/usr/share/doc/phoenix}
LIB_DIR=${LIB_DIR:-/usr/lib/phoenix}
BIN_DIR=${BIN_DIR:-/usr/lib/phoenix/bin}
+VAR_DIR=${VAR_DIR:-/var/lib/phoenix}
ETC_DIR=${ETC_DIR:-/etc/phoenix}
CONF_DIR=${CONF_DIR:-${ETC_DIR}/conf.dist}
@@ -110,7 +116,7 @@ install -d -m 0755 $PREFIX/$DOC_DIR
install -d -m 0755 $PREFIX/$MAN_DIR
install -d -m 0755 $PREFIX/$ETC_DIR
install -d -m 0755 $PREFIX/$CONF_DIR
-install -d -m 0755 $PREFIX/var/lib/phoenix
+install -d -m 0755 $PREFIX/$VAR_DIR
install -d -m 0755 $PREFIX/var/log/phoenix
cp $BUILD_DIR/*.jar $PREFIX/$LIB_DIR/
diff --git a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
index 76868e3d6..641d713a5 100644
--- a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
+++ b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
@@ -12,21 +12,23 @@
# 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.
-%define phoenix_home /usr/lib/%{name}
+%define phoenix_home %{parent_dir}/usr/lib/%{name}
+%define phoenix_pkg_name phoenix%{pkg_name_suffix}
%define bin_phoenix %{phoenix_home}/bin
%define lib_phoenix %{phoenix_home}/lib
%define examples_phoenix %{phoenix_home}/examples
-%define etc_phoenix_conf %{_sysconfdir}/%{name}/conf
-%define etc_phoenix_conf_dist %{etc_phoenix_conf}.dist
-%define var_lib_phoenix /var/lib/%{name}
+%define np_etc_phoenix = %{_sysconfdir}/%{name}
+%define etc_phoenix_conf = %{parent_dir}/%{_sysconfdir}/%{name}/conf
+%define etc_phoenix_conf_dist %{parent_dir}/%{np_etc_phoenix_conf}.dist
+%define var_lib_phoenix %{parent_dir}/var/lib/%{name}
%define var_log_phoenix /var/log/%{name}
%define man_dir %{_mandir}
-%define zookeeper_home /usr/lib/zookeeper
-%define hadoop_home /usr/lib/hadoop
-%define hadoop_mapreduce_home /usr/lib/hadoop-mapreduce
-%define hadoop_yarn_home /usr/lib/hadoop-yarn
-%define hadoop_hdfs_home /usr/lib/hadoop-hdfs
-%define hbase_home /usr/lib/hbase
+%define zookeeper_home %{parent_dir}/usr/lib/zookeeper
+%define hadoop_home %{parent_dir}/usr/lib/hadoop
+%define hadoop_mapreduce_home %{parent_dir}/usr/lib/hadoop-mapreduce
+%define hadoop_yarn_home %{parent_dir}/usr/lib/hadoop-yarn
+%define hadoop_hdfs_home %{parent_dir}/usr/lib/hadoop-hdfs
+%define hbase_home %{parent_dir}/usr/lib/hbase
#BIGTOP_PATCH_FILES
%if %{?suse_version:1}0
@@ -73,7 +75,7 @@
%endif
-Name: phoenix
+Name: %{phoenix_pkg_name}
Version: %{phoenix_version}
Release: %{phoenix_release}
Summary: Phoenix is a SQL skin over HBase and client-embedded JDBC driver.
@@ -94,11 +96,7 @@ Requires: bsh-utils
Requires: coreutils
%endif
-%if 0%{?rhel} >= 8 || 0%{?openEuler}
-Requires: python3
-%else
-Requires: python
-%endif
+
%description
Phoenix is a SQL skin over HBase, delivered as a client-embedded JDBC driver.
@@ -121,6 +119,9 @@ bash %{SOURCE1}
bash %{SOURCE2} \
--build-dir=build \
--doc-dir=%{doc_phoenix} \
+ --lib-dir=%{lib_phoenix}\
+ --bin-dir=%{bin_phoenix}\
+ --var-dir=%{var_lib_phoenix}\
--prefix=$RPM_BUILD_ROOT
%pre
@@ -130,11 +131,6 @@ getent passwd phoenix >/dev/null || useradd -c "Phoenix" -s /sbin/nologin -g pho
%post
%{alternatives_cmd} --install %{etc_phoenix_conf} %{name}-conf %{etc_phoenix_conf_dist} 30
-%if 0%{?rhel} >= 8
-%{alternatives_cmd} --set python /usr/bin/python3
-%endif
-
-
%preun
if [ "$1" = 0 ]; then
%{alternatives_cmd} --remove %{name}-conf %{etc_phoenix_conf_dist} || :
@@ -148,6 +144,7 @@ fi
%defattr(-,root,root,755)
%doc %{doc_phoenix}
%{phoenix_home}/phoenix-*.jar
+%{np_etc_phoenix}
%{bin_phoenix}
%{lib_phoenix}
%{examples_phoenix}
(bigtop) 07/07: fix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 9292a98bf69634c5839197ae2cdb473a04e71585
Author: jialiang <ji...@gmail.com>
AuthorDate: Thu Aug 8 14:11:11 2024 +0800
fix
---
provisioner/docker/docker-compose.yml | 2 +
provisioner/docker/docker-hadoop.sh | 84 ++++++++++++++++++-----------------
provisioner/utils/install_cluster.sh | 39 ++++++++++++++++
provisioner/utils/setup-env-centos.sh | 70 +++++++++++++++++++++++------
4 files changed, 141 insertions(+), 54 deletions(-)
diff --git a/provisioner/docker/docker-compose.yml b/provisioner/docker/docker-compose.yml
index ffab94e5e..f087365dd 100644
--- a/provisioner/docker/docker-compose.yml
+++ b/provisioner/docker/docker-compose.yml
@@ -26,3 +26,5 @@ services:
- ./config/hieradata:/etc/puppet/hieradata
- ./config/hosts:/etc/hosts
- /sys/fs/cgroup:/sys/fs/cgroup:ro
+ ports:
+ - "${HOST_PORT}-${HOST_PORT_END}:8080"
diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh
index f235ac9ae..8912b3612 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -28,7 +28,6 @@ usage() {
echo " -e, --exec INSTANCE_NO|INSTANCE_NAME - Execute command on a specific instance. Instance can be specified by name or number"
echo " For example: $PROG --exec 1 bash"
echo " $PROG --exec docker_bigtop_1 bash"
- echo " -E, --env-check - Check whether required tools has been installed"
echo " -G, --disable-gpg-check - Disable gpg check for the Bigtop repository"
echo " -k, --stack COMPONENTS - Overwrite the components to deploy defined in config file"
echo " COMPONENTS is a comma separated string"
@@ -37,16 +36,7 @@ usage() {
echo " -l, --list - List out container status for the cluster"
echo " -L, --enable-local-repo - Whether to use repo created at local file system. You can get one by $ ./gradlew repo"
echo " -m, --memory MEMORY_LIMIT - Overwrite the memory_limit defined in config file"
- echo " -n, --nexus NEXUS_URL - Configure Nexus proxy to speed up test execution"
- echo " NEXUS_URL is optional. If not specified, default to http://NEXUS_IP:8081/nexus"
- echo " Where NEXUS_IP is the ip of container named nexus"
- echo " -p, --provision - Deploy configuration changes"
echo " -r, --repo REPO_URL - Overwrite the yum/apt repo defined in config file"
- echo " -s, --smoke-tests COMPONENTS - Run Bigtop smoke tests"
- echo " COMPONENTS is optional. If not specified, default to smoke_test_components in config file"
- echo " COMPONENTS is a comma separated string"
- echo " For example: $PROG -c 3 --smoke-tests hdfs"
- echo " $PROG -c 3 --smoke-tests 'hdfs, yarn, mapreduce'"
echo " -h, --help"
exit 1
}
@@ -79,6 +69,8 @@ create() {
fi
export MEM_LIMIT=${memory_limit}
+ export HOST_PORT=8082
+ export HOST_PORT HOST_PORT_END=8089
# Startup instances
$DOCKER_COMPOSE_CMD -p $PROVISION_ID up -d --scale bigtop=$1 --no-recreate
if [ $? -ne 0 ]; then
@@ -120,12 +112,51 @@ create() {
gpg_check=true
fi
fi
- generate-config "$hadoop_head_node" "$repo" "$components"
+# generate-config "$hadoop_head_node" "$repo" "$components"
# Start provisioning
generate-hosts
bootstrap $distro $enable_local_repo
- provision
+
+ DEST_DIR="/bigtop-home/bigdata-deploy"
+ CONF_DIR="/bigtop-home/bigdata-deploy/conf"
+ FILENAME="base_conf.yml"
+
+ output=""
+ for node in ${NODES[*]}; do
+ ip_hostname=$(docker inspect --format "{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{.Config.Hostname}}" $node)
+ output+=" - $ip_hostname B767610qa4Z\n"
+ done
+
+
+
+ echo "Configuration file has been generated at $CONF_DIR/$FILENAME"
+
+ get_nodes
+ for node in ${NODES[*]}; do
+ docker exec $node bash -c "echo -e \"default_password: 'B767610qa4Z'
+stack_version: '3.3.0'
+data_dirs: ['/data/sdv1']
+repos:
+
+user: root
+hosts:
+$output
+components_to_install: ['zookeeper','ambari']
+
+backup_old_repo: no
+should_deploy_ambari_mpack: false
+deploy_ambari_only: false
+prepare_nodes_only: false
+
+cluster_name: 'cluster'
+hdfs_ha_name: 'c1'
+ansible_ssh_port: 22\" > $CONF_DIR/$FILENAME" &
+ docker exec $node bash -c "/bigtop-home/provisioner/utils/install_cluster.sh $DEST_DIR" &
+ break # 只在第一台机器上执行
+ done
+ wait
+# provision
}
generate-hosts() {
@@ -367,12 +398,6 @@ while [ $# -gt 0 ]; do
shift
execute "$@"
shift $#;;
- -E|--env-check)
- env-check
- shift;;
- -G|--disable-gpg-check)
- gpg_check=false
- shift;;
-k|--stack)
if [ $# -lt 2 ]; then
log "No stack specified"
@@ -413,20 +438,6 @@ while [ $# -gt 0 ]; do
fi
memory_limit=$2
shift 2;;
- -n|--nexus)
- if [ $# -lt 2 ] || [[ $2 == -* ]]; then
- NEXUS_IP=`docker inspect --format "{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}" nexus`
- if [ $? != 0 ]; then
- log "No container named nexus exists. To create one:\n $ docker run -d --name nexus sonatype/nexus"
- exit 1
- fi
- configure-nexus "http://$NEXUS_IP:8081/nexus"
- shift
- else
- configure-nexus $2
- shift 2
- fi
- ;;
-p|--provision)
provision
shift;;
@@ -437,15 +448,6 @@ while [ $# -gt 0 ]; do
fi
repo=$2
shift 2;;
- -s|--smoke-tests)
- if [ $# -lt 2 ] || [[ $2 == -* ]]; then
- shift
- else
- smoke_test_components=$2
- shift 2
- fi
- READY_TO_TEST=true
- ;;
-h|--help)
usage
shift;;
diff --git a/provisioner/utils/install_cluster.sh b/provisioner/utils/install_cluster.sh
new file mode 100644
index 000000000..9773c5bda
--- /dev/null
+++ b/provisioner/utils/install_cluster.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+
+if [ $# -eq 0 ]; then
+ echo "Error: Please provide a directory as an argument."
+ echo "Usage: $0 <directory>"
+ exit 1
+fi
+
+DEST_DIR="$1"
+
+if [ ! -d "$DEST_DIR" ]; then
+ echo "Error: Directory '$DEST_DIR' does not exist."
+ exit 1
+fi
+
+SCRIPT_DIR=$DEST_DIR
+cd "$SCRIPT_DIR"
+
+# 激活虚拟环境
+if [ -f "venv.sh" ]; then
+ source venv.sh
+else
+ echo "Warning: venv.sh not found in the current directory."
+fi
+
+python3 ci_tools/main.py -generate-conf
+if [ $? -ne 0 ]; then
+ echo "Error: Failed to generate configuration."
+ exit 1
+fi
+
+python3 ci_tools/main.py -deploy
+if [ $? -ne 0 ]; then
+ echo "Error: Deployment failed."
+ exit 1
+fi
+
+echo "Deployment completed successfully."
diff --git a/provisioner/utils/setup-env-centos.sh b/provisioner/utils/setup-env-centos.sh
index 1b85eef76..d0e4a0760 100755
--- a/provisioner/utils/setup-env-centos.sh
+++ b/provisioner/utils/setup-env-centos.sh
@@ -17,6 +17,9 @@
enable_local_repo=${1:-false}
+mkdir -p /data/sdv1
+echo 'root:B767610qa4Z' | chpasswd
+
# This may be crazy, but unless we change this - RHEL will actively
# revert back to localhost.localdomain
sed -ie 's#HOSTNAME=.*$#HOSTNAME='`hostname -f`'#' /etc/sysconfig/network
@@ -25,25 +28,65 @@ if [ -f /etc/os-release ]; then
. /etc/os-release
fi
+
+cd /etc/yum.repos.d/ && mkdir backup && mv *repo backup/
+repo_content='[baseos]
+name=Rocky Linux $releasever - BaseOS
+mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever
+gpgcheck=1
+enabled=1
+countme=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
+
+[devel]
+name=Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT AND KOJI USE
+mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=Devel-$releasever
+gpgcheck=1
+enabled=1
+countme=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
+'
+
+# Write the content to /etc/yum.repos.d/RockylinuxBase.repo
+echo "$repo_content" > /etc/yum.repos.d/RockylinuxBase.repo
+
+# Print a message indicating completion
+echo "Repository configuration has been written to /etc/yum.repos.d/RockylinuxBase.repo"
+
+#curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
+
+#sed -e 's|^mirrorlist=|#mirrorlist=|g' \
+# -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
+# -i.bak \
+# /etc/yum.repos.d/Rocky*.repo
+
+dnf makecache
+yum install -y sshpass
+yum -y install python3-devel
+yum -y install createrepo
+yum -y install openssh-clients openssh-server
+systemctl start sshd.service
+
+systemctl unmask systemd-logind.service
# Setup rng-tools to improve virtual machine entropy performance.
# The poor entropy performance will cause kerberos provisioning failed.
# BIGTOP-3883:
# yum-utils, yum-priorities and yum-config-manager are NOT available in openEuler 22.03
-if [ "${ID}" = "openEuler" ];then
- dnf install rng-tools -y
-else
- yum -y install rng-tools yum-priorities
-fi
+#if [ "${ID}" = "openEuler" ];then
+# dnf install rng-tools -y
+#else
+# yum -y install yum-priorities
+#fi
-if [ -x /usr/bin/systemctl ] ; then
- sed -i 's@ExecStart=/sbin/rngd -f@ExecStart=/sbin/rngd -f -r /dev/urandom@' /usr/lib/systemd/system/rngd.service
- systemctl daemon-reload
- systemctl start rngd
-else
- sed -i.bak 's/EXTRAOPTIONS=\"\"/EXTRAOPTIONS=\"-r \/dev\/urandom\"/' /etc/sysconfig/rngd
- service rngd start
-fi
+#if [ -x /usr/bin/systemctl ] ; then
+# sed -i 's@ExecStart=/sbin/rngd -f@ExecStart=/sbin/rngd -f -r /dev/urandom@' /usr/lib/systemd/system/rngd.service
+# systemctl daemon-reload
+# systemctl start rngd
+#else
+# sed -i.bak 's/EXTRAOPTIONS=\"\"/EXTRAOPTIONS=\"-r \/dev\/urandom\"/' /etc/sysconfig/rngd
+# service rngd start
+#fi
if [ $enable_local_repo == "true" ]; then
echo "Enabling local yum."
@@ -71,3 +114,4 @@ if [ $enable_local_repo == "true" ]; then
else
echo "local yum = $enable_local_repo ; NOT Enabling local yum. Packages will be pulled from remote..."
fi
+
(bigtop) 04/07: fix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 41c454e16d5de0267b8eea14037e27097d5d8f71
Author: jialiang <ji...@gmail.com>
AuthorDate: Wed Jun 26 15:00:32 2024 +0800
fix
---
bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
index e482659d1..5258ca01d 100644
--- a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
+++ b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
@@ -16,7 +16,7 @@
%define phoenix_home %{parent_dir}/usr/lib/%{phoenix_name}
%define phoenix_pkg_name phoenix%{pkg_name_suffix}
%define bin_phoenix %{phoenix_home}/bin
-%define lib_phoenix %{phoenix_home}/lib
+%define lib_phoenix %{phoenix_home}
%define examples_phoenix %{phoenix_home}/examples
%define np_etc_phoenix = %{_sysconfdir}/%{phoenix_name}
%define etc_phoenix_conf = %{parent_dir}/%{_sysconfdir}/%{phoenix_name}/conf
(bigtop) 02/07: fix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 1c00f7d333a63c68b2cf92c0b46d73416752df0a
Author: jialiang <ji...@gmail.com>
AuthorDate: Wed Jun 26 14:04:38 2024 +0800
fix
---
bigtop.bom | 1 +
1 file changed, 1 insertion(+)
diff --git a/bigtop.bom b/bigtop.bom
index b56888285..306445c05 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -249,6 +249,7 @@ bigtop {
'phoenix' {
name = 'phoenix'
+ rpm_pkg_suffix = "_" + bigtop.base_version.replace(".", "_")
relNotes = 'Apache Phoenix: A SQL skin over HBase'
version { base = "5.1.3"; pkg = base; release = 1 }
tarball { destination = "$name-${version.base}-src.tar.gz"
(bigtop) 05/07: fix phoenix
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch docker_ambari
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit c65035a1c97439c93675f651545ef4bf94f0a91b
Author: jialiang <ji...@gmail.com>
AuthorDate: Thu Jun 27 09:09:57 2024 +0800
fix phoenix
---
bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
index 5258ca01d..06c8449d5 100644
--- a/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
+++ b/bigtop-packages/src/rpm/phoenix/SPECS/phoenix.spec
@@ -18,9 +18,9 @@
%define bin_phoenix %{phoenix_home}/bin
%define lib_phoenix %{phoenix_home}
%define examples_phoenix %{phoenix_home}/examples
-%define np_etc_phoenix = %{_sysconfdir}/%{phoenix_name}
-%define etc_phoenix_conf = %{parent_dir}/%{_sysconfdir}/%{phoenix_name}/conf
-%define etc_phoenix_conf_dist %{parent_dir}/%{np_etc_phoenix_conf}.dist
+%define np_etc_phoenix %{_sysconfdir}/%{phoenix_name}
+%define etc_phoenix_conf %{np_etc_phoenix}/conf
+%define etc_phoenix_conf_dist %{etc_phoenix_conf}.dist
%define var_lib_phoenix %{parent_dir}/var/lib/%{phoenix_name}
%define var_log_phoenix /var/log/%{phoenix_name}
%define man_dir %{_mandir}