julianhyde / sqlline

Shell for issuing SQL to relational databases via JDBC
BSD 3-Clause "New" or "Revised" License
618 stars 146 forks source link

Unable to create a system terminal #484

Open mwaqashraf opened 1 year ago

mwaqashraf commented 1 year ago

Upon redirecting output of below command throws below warning when "--outputformat=table". It is working fine with other output format though.

java -Djava.ext.dirs="$BINPATH" -cp sqlline-1.12.0-jar-with-dependencies.jar:jline-3.0.0.jar:HiveJDBC41.jar sqlline.SqlLine -u jdbc:hive2://:10000/default -n -p -e "select 1,2,3;">/tmp/test.out

Error Output: Jul 08, 2023 10:59:16 PM org.jline.utils.Log logr WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

snuyanzin commented 1 year ago

why do you need this :jline-3.0.0.jar? I fear there could be conflicts between jline's classes of different versions since sqlline requires 3.21.0