You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2021/12/10 22:05:56 UTC

[GitHub] [accumulo] dlmarion opened a new issue #2383: ACCUMULO_JAVA_OPTS, does it work?

dlmarion opened a new issue #2383:
URL: https://github.com/apache/accumulo/issues/2383


   **Describe the bug**
   I'm setting the following bash environment variable:
   
   ```
   export ACCUMULO_JAVA_OPTS=("-Dotel.traces.exporter=jaeger" "-javaagent:/path/to/opentelemetry-javaagent-1.7.1.jar")
   ```
   [This](https://github.com/apache/accumulo/blob/main/assemble/conf/accumulo-env.sh#L70) says to do that. However, I don't see those arguments in my process. Furthermore, in the `BUGS` section in the `bash` man page, it says:
   
   ```
   Array variables may not (yet) be exported.
   ```
   
   How do I set this environment variable for it to work?
   
   **Versions (OS, Maven, Java, and others, as appropriate):**
    - Affected version(s) of this project: 2.1.0-SNAPSHOT
    - OS: CentOS7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] dlmarion commented on issue #2383: ACCUMULO_JAVA_OPTS, does it work?

Posted by GitBox <gi...@apache.org>.
dlmarion commented on issue #2383:
URL: https://github.com/apache/accumulo/issues/2383#issuecomment-997022586


   Closed by #2391


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] ctubbsii commented on issue #2383: ACCUMULO_JAVA_OPTS, does it work?

Posted by GitBox <gi...@apache.org>.
ctubbsii commented on issue #2383:
URL: https://github.com/apache/accumulo/issues/2383#issuecomment-991361680


   Yeah, that's a bug. The `accumulo-env.sh` file is supposed to be sourced, which does pass the variables correctly to the script that sourced it, but exporting does not. Any script that tries to work that way should be fixed. The `accumulo-env.sh` script shouldn't be exporting `JAVA_OPTS` or relying on `ACCUMULO_JAVA_OPTS` to be an array.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] ctubbsii commented on issue #2383: ACCUMULO_JAVA_OPTS, does it work?

Posted by GitBox <gi...@apache.org>.
ctubbsii commented on issue #2383:
URL: https://github.com/apache/accumulo/issues/2383#issuecomment-991361680


   Yeah, that's a bug. The `accumulo-env.sh` file is supposed to be sourced, which does pass the variables correctly to the script that sourced it, but exporting does not. Any script that tries to work that way should be fixed. The `accumulo-env.sh` script shouldn't be exporting `JAVA_OPTS` or relying on `ACCUMULO_JAVA_OPTS` to be an array.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] dlmarion closed issue #2383: ACCUMULO_JAVA_OPTS, does it work?

Posted by GitBox <gi...@apache.org>.
dlmarion closed issue #2383:
URL: https://github.com/apache/accumulo/issues/2383


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org