Falcon
  1. Falcon
  2. FALCON-187

Update Falcon start script to also redirect stdout to the log file

    Details

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

      Description

      I noticed a weird behavior where if the bin/falcon-start script was called within the ssh call it would start the service but not return the control back to the user.

      If the same ssh call was issued with -t option it worked. What i determined is that the java command being issued is only redirecting stderr to the log file and stdout is not being captured. If we capture stdout as well we do not run into this issue.

        Issue Links

          Activity

          Arpit Gupta created issue -
          Arpit Gupta made changes -
          Field Original Value New Value
          Link This issue requires FALCON-162 [ FALCON-162 ]
          Arpit Gupta made changes -
          Link This issue requires FALCON-165 [ FALCON-165 ]
          Hide
          Arpit Gupta added a comment -

          Attached is a simple patch that i tested on my mac. Without this patch if falcon is started within an ssh call it will not return the control back to the user. Makes it a bit difficult to automate

          Show
          Arpit Gupta added a comment - Attached is a simple patch that i tested on my mac. Without this patch if falcon is started within an ssh call it will not return the control back to the user. Makes it a bit difficult to automate
          Arpit Gupta made changes -
          Attachment FALCON-187-v1.patch [ 12613295 ]
          Hide
          Arpit Gupta added a comment -

          btw this patch will apply on top of FALCON-162 and FALCON-165. I used hadoop scripts as a guideline for this change as in the same env i could start hadoop scripts via ssh but not falcon.

          Show
          Arpit Gupta added a comment - btw this patch will apply on top of FALCON-162 and FALCON-165 . I used hadoop scripts as a guideline for this change as in the same env i could start hadoop scripts via ssh but not falcon.
          Arpit Gupta made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hide
          Venkatesh Seetharam added a comment -

          Committed to FALCON-85 branch. Thanks Arpit Gupta!

          Show
          Venkatesh Seetharam added a comment - Committed to FALCON-85 branch. Thanks Arpit Gupta !
          Venkatesh Seetharam made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          9m 49s 1 Arpit Gupta 12/Nov/13 02:16
          Patch Available Patch Available Resolved Resolved
          3h 53m 1 Venkatesh Seetharam 12/Nov/13 06:10

            People

            • Assignee:
              Arpit Gupta
              Reporter:
              Arpit Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development