I tried installing library and configuring spark configs, restarted the cluster and then in notebook ran the create cmd but it gives me error stating
java.io.FileNotFoundException: No such file or directory: s3://incred-databricks-data/hudi_dms_data/hudi_cow_pt_tbl
My cmd in python notebook :
%sql
create table hudi_cow_pt_tbl (
id bigint,
name string,
ts bigint,
dt string,
hh string
) using hudi
tblproperties (
type = 'cow',
primaryKey = 'id',
preCombineField = 'ts'
)
partitioned by (dt, hh)
location 's3://incred-databricks-data/hudi_dms_data/hudi_cow_pt_tbl';
And also this doesn't work and gives error : ModuleNotFoundError: No module named 'org.apache.hudi'
import org.apache.hudi.DataSourceReadOptions._
import org.apache.hudi.DataSourceWriteOptions._
import org.apache.hudi.config.HoodieWriteConfig._
![Library Library](/t5/image/serverpage/image-id/487iEC6E2F6451048AC5/image-size/large?v=v2&px=999)
![configs configs](/t5/image/serverpage/image-id/460iB7708A5FCEF9562C/image-size/large?v=v2&px=999)
![12.2 LTS 12.2 LTS](/t5/image/serverpage/image-id/467i5A20E8DC60ABBDE0/image-size/large?v=v2&px=999)