rmoff commented on PR #23629:
URL: https://github.com/apache/flink/pull/23629#issuecomment-1917053501

   I am hitting the same problem, with Flink 1.18.1. 
   
   ## Setup 
   
   ```
   # Unpack clean 1.18.1 download
   cd ~/flink
   tar xf flink-1.18.1-bin-scala_2.12.tgz
   
   # Unpack clean Hadoop download
   cd ~/hadoop
   tar xf hadoop-3.3.2.tar.gz
   
   # Set `HADOOP_CLASSPATH` per instructions at 
   # 
https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/connectors/table/hive/overview/#dependencies
   export HADOOP_CLASSPATH=`~/hadoop/hadoop-3.3.2/bin/hadoop classpath`
   ```
   
   ## Check env
   
   ```
   ❯ echo $HADOOP_CLASSPATH
   
/Users/rmoff/hadoop/hadoop-3.3.2/etc/hadoop:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/common/lib/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/common/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/hdfs:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/hdfs/lib/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/hdfs/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/mapreduce/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/yarn:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/yarn/lib/*:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/yarn/*
   ```
   
   ## Run SQL Client
   
   ```
   ❯ ./bin/sql-client.sh
   SLF4J: Class path contains multiple SLF4J bindings.
   SLF4J: Found binding in 
[jar:file:/Users/rmoff/flink/flink-1.18.1/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: Found binding in 
[jar:file:/Users/rmoff/hadoop/hadoop-3.3.2/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
   SLF4J: Actual binding is of type 
[org.apache.logging.slf4j.Log4jLoggerFactory]
   
                                      ▒▓██▓██▒
                                  ▓████▒▒█▓▒▓███▓▒
                               ▓███▓░░        ▒▒▒▓██▒  ▒
                             ░██▒   ▒▒▓▓█▓▓▒░      ▒████
                             ██▒         ░▒▓███▒    ▒█▒█▒
                               ░▓█            ███   ▓░▒██
                                 ▓█       ▒▒▒▒▒▓██▓░▒░▓▓█
                               █░ █   ▒▒░       ███▓▓█ ▒█▒▒▒
                               ████░   ▒▓█▓      ██▒▒▒ ▓███▒
                            ░▒█▓▓██       ▓█▒    ▓█▒▓██▓ ░█░
                      ▓░▒▓████▒ ██         ▒█    █▓░▒█▒░▒█▒
                     ███▓░██▓  ▓█           █   █▓ ▒▓█▓▓█▒
                   ░██▓  ░█░            █  █▒ ▒█████▓▒ ██▓░▒
                  ███░ ░ █░          ▓ ░█ █████▒░░    ░█░▓  ▓░
                 ██▓█ ▒▒▓▒          ▓███████▓░       ▒█▒ ▒▓ ▓██▓
              ▒██▓ ▓█ █▓█       ░▒█████▓▓▒░         ██▒▒  █ ▒  ▓█▒
              ▓█▓  ▓█ ██▓ ░▓▓▓▓▓▓▓▒              ▒██▓           ░█▒
              ▓█    █ ▓███▓▒░              ░▓▓▓███▓          ░▒░ ▓█
              ██▓    ██▒    ░▒▓▓███▓▓▓▓▓██████▓▒            ▓███  █
             ▓███▒ ███   ░▓▓▒░░   ░▓████▓░                  ░▒▓▒  █▓
             █▓▒▒▓▓██  ░▒▒░░░▒▒▒▒▓██▓░                            █▓
             ██ ▓░▒█   ▓▓▓▓▒░░  ▒█▓       ▒▓▓██▓    ▓▒          ▒▒▓
             ▓█▓ ▓▒█  █▓░  ░▒▓▓██▒            ░▓█▒   ▒▒▒░▒▒▓█████▒
              ██░ ▓█▒█▒  ▒▓▓▒  ▓█                █░      ░░░░   ░█▒
              ▓█   ▒█▓   ░     █░                ▒█              █▓
               █▓   ██         █░                 ▓▓        ▒█▓▓▓▒█░
                █▓ ░▓██░       ▓▒                  ▓█▓▒░░░▒▓█░    ▒█
                 ██   ▓█▓░      ▒                    ░▒█▒██▒      ▓▓
                  ▓█▒   ▒█▓▒░                         ▒▒ █▒█▓▒▒░░▒██
                   ░██▒    ▒▓▓▒                     ▓██▓▒█▒ ░▓▓▓▓▒█▓
                     ░▓██▒                          ▓░  ▒█▓█  ░░▒▒▒
                         ▒▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▓▓  ▓░▒█░
   
       ______ _ _       _       _____  ____  _         _____ _ _            _  
BETA
      |  ____| (_)     | |     / ____|/ __ \| |       / ____| (_)          | |
      | |__  | |_ _ __ | | __ | (___ | |  | | |      | |    | |_  ___ _ __ | |_
      |  __| | | | '_ \| |/ /  \___ \| |  | | |      | |    | | |/ _ \ '_ \| __|
      | |    | | | | | |   <   ____) | |__| | |____  | |____| | |  __/ | | | |_
      |_|    |_|_|_| |_|_|\_\ |_____/ \___\_\______|  \_____|_|_|\___|_| |_|\__|
   
           Welcome! Enter 'HELP;' to list all available commands. 'QUIT;' to 
exit.
   
   Command history file path: /Users/rmoff/.flink-sql-history
   
   
   
   Exception in thread "main" org.apache.flink.table.client.SqlClientException: 
Could not read from command line.
           at 
org.apache.flink.table.client.cli.CliClient.getAndExecuteStatements(CliClient.java:221)
           at 
org.apache.flink.table.client.cli.CliClient.executeInteractive(CliClient.java:179)
           at 
org.apache.flink.table.client.cli.CliClient.executeInInteractiveMode(CliClient.java:121)
           at 
org.apache.flink.table.client.cli.CliClient.executeInInteractiveMode(CliClient.java:114)
           at 
org.apache.flink.table.client.SqlClient.openCli(SqlClient.java:169)
           at org.apache.flink.table.client.SqlClient.start(SqlClient.java:118)
           at 
org.apache.flink.table.client.SqlClient.startClient(SqlClient.java:228)
           at org.apache.flink.table.client.SqlClient.main(SqlClient.java:179)
   Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.flink.table.client.config.SqlClientOptions
           at 
org.apache.flink.table.client.cli.parser.SqlClientSyntaxHighlighter.highlight(SqlClientSyntaxHighlighter.java:59)
           at 
org.jline.reader.impl.LineReaderImpl.getHighlightedBuffer(LineReaderImpl.java:3633)
           at 
org.jline.reader.impl.LineReaderImpl.getDisplayedBufferWithPrompts(LineReaderImpl.java:3615)
           at 
org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3554)
           at 
org.jline.reader.impl.LineReaderImpl.doCleanup(LineReaderImpl.java:2340)
           at 
org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2332)
           at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:626)
           at 
org.apache.flink.table.client.cli.CliClient.getAndExecuteStatements(CliClient.java:194)
           ... 7 more
   
   Shutting down the session...
   done.
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to