Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-4928

CLI documentation generation failing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.1
    • Component/s: Docs
    • Labels:
      None
    • Rank:
      1|hzz6mv:

      Description

      Following our instructions, I tried to generate the table for the CLI documentation:

      $ java -cp cdap-docs-gen/target/cdap-docs-gen-3.3.1-SNAPSHOT.jar co.cask.cdap.docgen.cli.GenerateCLIDocsTable
      Exception in thread "main" java.lang.NoClassDefFoundError: co/cask/common/cli/Command
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
      	at java.lang.Class.getMethod0(Class.java:2866)
      	at java.lang.Class.getMethod(Class.java:1676)
      	at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
      	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
      Caused by: java.lang.ClassNotFoundException: co.cask.common.cli.Command
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 6 more
      

      I was able to build and run the command line usage:

      $ java -cp cdap-cli/target/cdap-cli-3.3.1-SNAPSHOT.jar co.cask.cdap.cli.CLIMain -h
      usage: cdap-cli.sh [--autoconnect <true|false>] [--debug] [--help]
                         [--verify-ssl <true|false>] [--uri <uri>][--script
                         <script-file>]
       -a,--autoconnect <arg>   If "true", try provided connection (from uri)
                                upon launch or try default connection if none
                                provided. Defaults to "true".
       -d,--debug               Print exception stack traces.
       -h,--help                Print the usage message.
       -s,--script <arg>        Execute a file containing a series of CLI
                                commands, line-by-line.
       -u,--uri <arg>           CDAP instance URI to interact with in the format
                                "[http[s]://]<hostname>[:<port>[/<namespace>]]".
                                Defaults to
                                "http://JJs-MacBook-Pro.local:10000".
       -v,--verify-ssl <arg>    If "true", verify SSL certificate when making
                                requests. Defaults to "true".
      

        Attachments

          Activity

            People

            • Assignee:
              John John Jackson
              Reporter:
              John John Jackson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: