Uploaded image for project: 'Livy (READ-ONLY)'
  1. Livy (READ-ONLY)
  2. LIVY-337

RPCServer bind to random port ,which make livy not work inside docker

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: None
    • Component/s: RSC
    • Labels:

      Description

      Hi

      I am using Livy 0.3 in Docker in yarn cluster mode. So my livy is running on container and RSC will run on my Yarn Cluster . Now When Livy start , it bind
      RPCServer to random port

      .bind(0)

      Now t I cannot open this port from my docker ,since its random port .

      Now due to this the RSC cannot be able to communicate back with RPC Server and Livy Server fails .

      Now in order to fix above issue
      1 I started my docker ,opened with one specific port ,for e.g 31111
      2 Create livy-client.conf and added livy.rsc.launcher.port=31111
      3 Change in RPCServer code to bind to

      .bind(config.getInt(LAUNCHER_PORT))

      This make my livy runs fine.

      Can we incorporate these change in main source.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pralabhkumar Pralabh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: