Skip to content

Commit

Permalink
[#77] [Standalone] Exporting GIMEL_HOME by default
Browse files Browse the repository at this point in the history
### GitHub Issue
Fixes #77


### Checklist:
<!--- Go over all the following points. Check boxes that apply to this pull request -->
- [x] This pull request updates the documentation
- [ ] This pull request changes library dependencies
- [x] Title of the PR is of format (example) : [#25][Github] Add Pull Request Template

<!-- NOTE: lines that start with < - - ! and end with - - > are comments and will be ignored. -->
<!-- Please include the GitHub issue number in the PR title above. If an issue does not exist, please create one.-->
<!-- Example:[#25][Github] Add Pull Request Template where [#25 refers to #25] -->

### What is the purpose of this pull request?
<!-- Please fill in changes proposed in this pull request. -->
<!-- Example: This Pull Request upgrades codebase to spark 3.0.0  -->

### How was this change validated?
<!-- Please add the Command Used, Results Snippet, details on how reviewer/committer can simulate issue & verify the change -->
<!-- Example: In addition to unit-tests, and integration-test, I ran X on the Y cluster and verified the Z output.-->

### Commit Guidelines
- [x] My commits all reference GH issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"
  • Loading branch information
rampallydheeraj authored and Dee-Pac committed Apr 26, 2018
1 parent 8e8d0e0 commit 2761054
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 0 additions & 6 deletions docs/try-gimel/0-prerequisite.md
Expand Up @@ -56,12 +56,6 @@ ________________________________________________________________________________
```
cd gimel
```

* Export GIMEL_HOME variable by setting it to the current folder.
```
export GIMEL_HOME=`pwd`
echo $GIMEL_HOME
```
* Navigate to the folder gimel-dataapi/gimel-standalone/ - ```cd gimel-dataapi/gimel-standalone/```
* Create lib folder in gimel-standalone - ```mkdir lib```
* Copy the downloaded jar in lib
Expand Down
2 changes: 0 additions & 2 deletions quickstart/set-env
Expand Up @@ -23,5 +23,3 @@ export standalone_dir=${gimel_repo_home}/gimel-dataapi/gimel-standalone
export gimel_jar_name=gimel-sql-1.2.0-SNAPSHOT-uber.jar
export final_jar=${standalone_dir}/lib/$gimel_jar_name
export FLIGHTS_DATA_PATH=$GIMEL_HOME/gimel-dataapi/gimel-quickstart/flights


12 changes: 9 additions & 3 deletions quickstart/start-gimel
Expand Up @@ -15,11 +15,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

export this_dir=`dirname $0`
source $this_dir/set-env
export this_file=${0}
export this_script_path="$( cd "$( dirname "$this_file" )" && pwd)"
cd ${this_script_path}
cd ..
export GIMEL_HOME=${PWD}
source ${GIMEL_HOME}/build/gimel_functions
write_log "Current Working Directory is ${GIMEL_HOME}"
export this_dir=`dirname $0`
source ${this_script_path}/set-env

write_log "Stop if any container is running already..."
write_log "Stop if any container is running already"
run_cmd "sh $GIMEL_HOME/quickstart/stop-gimel stop"

mkdir ${GIMEL_HOME}/tmp ${GIMEL_HOME}/lib
Expand Down

0 comments on commit 2761054

Please sign in to comment.