rmoff
01/17/2024, 6:03 PMCREATE CATALOG hive WITH (
'type'='hive',
[…]
);
But it doesn't work - I get an error:
Could not find any factory for identifier 'hive' that implements 'org.apache.flink.table.factories.CatalogFactory' in the classpath.
Available factory identifiers are:
generic_in_memory
What am I missing? I'm running vanilla 1.18 out of the box
❯ ./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host asgard08.
Starting taskexecutor daemon on host asgard08.
❯ ./bin/sql-client.sh
[…]
______ _ _ _ _____ ____ _ _____ _ _ _ BETA
| ____| (_) | | / ____|/ __ \| | / ____| (_) | |
| |__ | |_ _ __ | | __ | (___ | | | | | | | | |_ ___ _ __ | |_
| __| | | | '_ \| |/ / \___ \| | | | | | | | | |/ _ \ '_ \| __|
| | | | | | | | < ____) | |__| | |____ | |____| | | __/ | | | |_
|_| |_|_|_| |_|_|\_\ |_____/ \___\_\______| \_____|_|_|\___|_| |_|\__|
Welcome! Enter 'HELP;' to list all available commands. 'QUIT;' to exit.
Command history file path: /Users/rmoff/.flink-sql-history
Flink SQL>Martijn Visser
01/17/2024, 6:04 PMrmetzger
01/17/2024, 7:34 PMrmetzger
01/17/2024, 7:36 PMrmoff
01/17/2024, 7:36 PMrmetzger
01/17/2024, 7:37 PMrmoff
01/17/2024, 7:37 PMMartijn Visser
01/17/2024, 7:37 PMrmoff
01/18/2024, 3:48 PMflink-sql-connector-hive-3.1.3_2.12-1.18.0.jar and now get a different error (which I guess is progress) 😉
java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
I'm guessing I'm missing a JAR? I'm not clear about which I actually need from the docsrmoff
01/18/2024, 4:25 PMrmoff
01/18/2024, 5:55 PM❯ echo $HADOOP_CLASSPATH
/Users/rmoff/flink/flink-1.18.0/hadoop_lib/*
❯ ls -l hadoop_lib
total 21456
-rw-r--r--@ 1 rmoff staff 616888 21 Feb 2022 commons-configuration2-2.1.1.jar
-rw-r--r--@ 1 rmoff staff 62050 21 Feb 2022 commons-logging-1.1.3.jar
-rw-r--r--@ 1 rmoff staff 104418 21 Feb 2022 hadoop-auth-3.3.2.jar
-rw-r--r--@ 1 rmoff staff 4470210 21 Feb 2022 hadoop-common-3.3.2.jar
-rw-r--r--@ 1 rmoff staff 1636323 21 Feb 2022 hadoop-mapreduce-client-core-3.3.2.jar
-rw-r--r--@ 1 rmoff staff 3362359 21 Feb 2022 hadoop-shaded-guava-1.1.1.jar
-rw-r--r--@ 1 rmoff staff 195909 21 Feb 2022 stax2-api-4.2.1.jar
-rw-r--r--@ 1 rmoff staff 522360 21 Feb 2022 woodstox-core-5.3.0.jarrmetzger
01/19/2024, 12:47 PMrmetzger
01/19/2024, 12:49 PMWould proceeding with just this set of JARs available be stupidNo, it is required
rmetzger
01/19/2024, 12:50 PMHADOOP_CLASSPATH points to its lib folder.rmoff
01/19/2024, 1:33 PMrmetzger
01/19/2024, 7:09 PM