You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by aljoscha <gi...@git.apache.org> on 2015/08/25 19:28:36 UTC

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

GitHub user aljoscha opened a pull request:

    https://github.com/apache/flink/pull/1057

    [hotfix] Allow setting FLINK_CONF_DIR by hand

    This makes it possible for users to set a per-job conf directory when using the one-flink-cluster-per-job mode on yarn. Which enables, for example, per job log settings.
    
    @uce  This should probably also go into 0.9.1.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aljoscha/flink flink-conf-dir

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1057.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1057
    
----
commit d42e7df0110adfa4702de2fc2e31c85e8ecc0c18
Author: Aljoscha Krettek <al...@gmail.com>
Date:   2015-08-25T17:26:29Z

    [hotfix] Allow setting FLINK_CONF_DIR by hand

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by mxm <gi...@git.apache.org>.
Github user mxm commented on the pull request:

    https://github.com/apache/flink/pull/1057#issuecomment-134934294
  
    Could you add some documentation? Looks good to merge otherwise :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by aljoscha <gi...@git.apache.org>.
Github user aljoscha commented on the pull request:

    https://github.com/apache/flink/pull/1057#issuecomment-134934614
  
    Oops, sorry, I merged it already because there weren't any new comments over night.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by mxm <gi...@git.apache.org>.
Github user mxm commented on the pull request:

    https://github.com/apache/flink/pull/1057#issuecomment-134679865
  
    Very useful feature. In addition, I could also imagine that the config file could be passed as a parameter to the ./bin/flink utility.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by mxm <gi...@git.apache.org>.
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1057#discussion_r37895597
  
    --- Diff: flink-dist/src/main/flink-bin/bin/config.sh ---
    @@ -127,7 +127,7 @@ FLINK_LIB_DIR=$FLINK_ROOT_DIR/lib
     # The above lib path is used by the shell script to retrieve jars in a 
     # directory, so it needs to be unmangled.
     FLINK_ROOT_DIR_MANGLED=`manglePath "$FLINK_ROOT_DIR"`
    -FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf
    +if [ -z "$FLINK_CONF_DIR" ]; then FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf; fi
    --- End diff --
    
    Yes, you don't need the else here because the variable is set either through the environment or in the if block. Still, I'd prefer newlines but it is maybe just a matter of taste here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by mxm <gi...@git.apache.org>.
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1057#discussion_r37894302
  
    --- Diff: flink-dist/src/main/flink-bin/bin/config.sh ---
    @@ -127,7 +127,7 @@ FLINK_LIB_DIR=$FLINK_ROOT_DIR/lib
     # The above lib path is used by the shell script to retrieve jars in a 
     # directory, so it needs to be unmangled.
     FLINK_ROOT_DIR_MANGLED=`manglePath "$FLINK_ROOT_DIR"`
    -FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf
    +if [ -z "$FLINK_CONF_DIR" ]; then FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf; fi
    --- End diff --
    
    Maybe just code style but could you make this more explicit using if-else blocks?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by aljoscha <gi...@git.apache.org>.
Github user aljoscha closed the pull request at:

    https://github.com/apache/flink/pull/1057


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by aljoscha <gi...@git.apache.org>.
Github user aljoscha commented on the pull request:

    https://github.com/apache/flink/pull/1057#issuecomment-134935236
  
    But you're right, I'll add some documentation to the flink yarn doc, because this is the only place where I see this could be helpful.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by aljoscha <gi...@git.apache.org>.
Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1057#discussion_r37894520
  
    --- Diff: flink-dist/src/main/flink-bin/bin/config.sh ---
    @@ -127,7 +127,7 @@ FLINK_LIB_DIR=$FLINK_ROOT_DIR/lib
     # The above lib path is used by the shell script to retrieve jars in a 
     # directory, so it needs to be unmangled.
     FLINK_ROOT_DIR_MANGLED=`manglePath "$FLINK_ROOT_DIR"`
    -FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf
    +if [ -z "$FLINK_CONF_DIR" ]; then FLINK_CONF_DIR=$FLINK_ROOT_DIR_MANGLED/conf; fi
    --- End diff --
    
    What would be the else block?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [hotfix] Allow setting FLINK_CONF_DIR by hand

Posted by mxm <gi...@git.apache.org>.
Github user mxm commented on the pull request:

    https://github.com/apache/flink/pull/1057#issuecomment-134936395
  
    Ok thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---