Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3883

Rename flink clients for inclusion on system path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • Command Line Client
    • None

    Description

      I ran into some trouble in preparing a Homebrew formula to install Flink on Mac (homebrew-core#968). Homebrew can install bin scripts into the system path, e.g. `/usr/local/bin/flink`:

      $ cat /usr/local/bin/flink
      #!/bin/bash
      exec "/usr/local/Cellar/apache-flink/1.0.2/libexec/bin/flink" "$@"
      

      It would be nice to install the various Flink shells too, but their names don't seem ideal for inclusion on the system path. I propose that they be renamed or aliased to have the following names (old -> new):

      "pyflink2.sh" -> "pyflink2"
      "pyflink3.sh" -> "pyflink3"
      "start-scala-shell.sh" -> "flink-scala-shell"   (note: updated based on feedback)
      

      A related issue is, the shell scripts don't correctly determine their install location when called via a symlink.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eronwright Eron Wright
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: