Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> sqlline


Here's the sqlline script I forgot to check in:

#!/bin/bash
# sqlline - Script to launch SQL shell
#
# Example:
# $ ./sqlline
# sqlline> !connect jdbc:optiq:model=common/target/test-classes/donuts-model.json admin admin

# Build classpath on first call. (To force rebuild, remove .classpath.txt.)
if [ ! -f .classpath.txt ]; then
    (cd sqlparser; mvn dependency:build-classpath -Dmdep.outputFile=../.classpath.txt)
    find . -type d -name classes |awk 'BEGIN {ORS=":"} {print}' >> .classpath.txt
fi

exec java -cp "$(cat .classpath.txt)" sqlline.SqlLine "$@"

# End sqlline
Julian
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB