Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1703

The bat script failed to start on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.1.1
    • None
    • build

    Description

      The bat script in bin\windows can not start zookeeper and kafka correctly (where my os is just installed and only jdk ready). I modified the kafka-run-class.bat and add jars in libs folder to classpath.

      for %%i in (%BASE_DIR%\core\lib*.jar) do (
      call :concat %%i
      )

            1. added begin####
              for %%i in (%BASE_DIR%\..\libs*.jar) do (
              call :concat %%i
              )
            2. added end####

      for %%i in (%BASE_DIR%\perf\target\scala-2.8.0/kafka*.jar) do (
      call :concat %%i
      )

      Now it runs correctly.

      Under bin\windows:
      zookeeper-server-start.bat ..\..\config\zookeeper.properties

      kafka-server-start.bat ..\..\config\kafka.properties

      Attachments

        1. kafka-run-class.bat
          3 kB
          JK Dong

        Activity

          People

            Unassigned Unassigned
            chrisrc ChengRen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: