Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2377

fix "kubectl: executable file not found in $PATH" for e2e

    XMLWordPrintableJSON

Details

    Description

        Logging yk fullstatedump, spec: Test_With_Spark_Jobs
        Created log file: /home/chia7712/project/yunikorn-k8shim/build/e2e/spark_jobs_scheduling/Test_With_Spark_Jobs_ykFullStateDump.json
      Handling connection for 9080
        Logging k8s cluster info, spec: Test_With_Spark_Jobs
        Created log file: /home/chia7712/project/yunikorn-k8shim/build/e2e/spark_jobs_scheduling/Test_With_Spark_Jobs_k8sClusterInfo.txt
        Failed to log namespace info, ns:spark-qlje7ea5p1, err: exec: "kubectl": executable file not found in $PATH 

      I observed the error message "kubectl: executable file not found in $PATH" from e2e test. In the e2e we call the "kubectl" command by shell (https://github.com/apache/yunikorn-k8shim/blob/master/test/e2e/framework/helpers/k8s/k8s_utils.go#L637), and hence it will cause the error if the node running the e2e does not install the kubectl.

      Attachments

        Issue Links

          Activity

            People

              lowc1012 Ryan Lo
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: