-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Druid automated quickstart #13365
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
Druid automated quickstart #13365
Changes from all commits
8c9dcc2
342e5d7
6a4a48e
36b86b6
dbfb465
7324252
72494e9
e350587
68a1e66
e570606
b413d15
9b8cdc6
75d169f
a891319
5692753
d111012
a9b24e2
71bfca1
032bae0
f55c749
2a0dd34
c35cc1e
891eaaa
a06e86b
dc8f2b2
589586f
b78b116
a288704
81134a6
b8f01cc
6e6305f
a14af0f
96956e5
3a13e39
af0d445
6397eef
a3d442b
b332729
b8d34c4
cafdc83
9a5053e
0da21ab
b03d873
aabc53c
2d19c54
657b513
a4c34e7
0fd9b09
c0da3cd
7b21323
7535ec8
144042f
f5b225f
42be20a
eed55be
9063884
fe5c773
62912bb
9b08b04
622a7ff
6da787c
0677d0c
4380235
77febf8
1c8bd24
9e495b3
e04af93
ca9d5ea
01fb4b2
d0c3b21
c516320
9aeb551
1036a7b
71977d6
6062c33
d5d81f4
5942eff
a4d14f7
0742c77
41ad0bd
08507b4
48ffe3f
14b8679
2837dd3
511583e
d569693
d0e7374
e3d3657
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| id: python | ||
| title: "Python Installation" | ||
| --- | ||
|
|
||
| <!-- | ||
| ~ 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. | ||
| --> | ||
|
|
||
| Apache Druid startup script requires Python2 or Python3 interpreter. | ||
| Since Python2 is deprecated, this document has instructions to install Python3 interpreter. | ||
|
|
||
| ## Python3 interpreter installation instructions | ||
|
|
||
| ### Linux | ||
|
|
||
| #### Debian or Ubuntu | ||
| - `sudo apt update` | ||
| - `sudo apt install -y python3-pip` | ||
| #### RHEL | ||
| - `sudo yum install -y epel-release` | ||
| - `sudo yum install -y python3-pip` | ||
|
|
||
| ### MacOS | ||
|
|
||
| #### Install with Homebrew | ||
| Refer [Installing Python 3 on Mac OS X](https://docs.python-guide.org/starting/install3/osx/) | ||
|
|
||
| #### Install the official Python release | ||
| * Browse to the [Python Downloads Page](https://www.python.org/downloads/) and download the latest version (3.x.x) | ||
|
|
||
| Verify if Python3 is installed by issuing `python3 --version` command. | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/bash -eu | ||
|
|
||
| # 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. | ||
|
|
||
| PWD="$(pwd)" | ||
| WHEREAMI="$(dirname "$0")" | ||
| WHEREAMI="$(cd "$WHEREAMI" && pwd)" | ||
|
|
||
| if [ -x "$(command -v python3)" ] | ||
| then | ||
| exec python3 "$WHEREAMI/start-druid-main.py" "$@" | ||
| elif [ -x "$(command -v python2)" ] | ||
| then | ||
| exec python2 "$WHEREAMI/start-druid-main.py" "$@" | ||
| elif [ -x "$(command -v python)" ] | ||
| then | ||
| exec python "$WHEREAMI/start-druid-main.py" "$@" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should do a
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be done as a followup also
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
| else | ||
| echo "python interepreter not found" | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.