Skip to content

Commit

Permalink
remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mchades committed Oct 26, 2023
1 parent 3649ac9 commit de93da3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions conf/gravitino-env.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
# export GRAVITINO_HOME
# export GRAVITINO_CONF_DIR
# export GRAVITINO_LOG_DIR # Where log files are stored. PWD by default.
# export GRAVITINO_MEM # Gravitino jvm mem options Default -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m
# HADOOP_USER_NAME=gravitino
# export GRAVITINO_MEM # Gravitino jvm mem options Default -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m
9 changes: 5 additions & 4 deletions docs/gravitino-server-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ Gravitino server also supports setting up runtime environment variables by editi

### How to access Hadoop

Gravitino currently does not have an interface to specify the Hadoop username for accessing Hadoop (HDFS, YARN, etc.).
By default, it uses the `HADOOP_USER_NAME` from the runtime environment as the Hadoop user. If you encounter
a `permission denied` issue, you can modify the value of the `HADOOP_USER_NAME` variable in `gravitino-env.sh`, which is
located in the `conf` directory, before starting the Gravitino service.
Currently, due to the absence of a comprehensive user permission system, Gravitino can only use a single username for
Hadoop access. Please ensure that the user starting the Gravitino server has Hadoop (HDFS, YARN, etc.) access
permissions; otherwise, you may encounter a `Permission denied` error. To temporarily solve this error, you can also
specify the value of the environment variable `HADOOP_USER_NAME` to be a username with access to Hadoop before starting
the service.

0 comments on commit de93da3

Please sign in to comment.