Skip to content

Instantly share code, notes, and snippets.

View JackWangCS's full-sized avatar

JackWangCS JackWangCS

  • Beijing, China
View GitHub Profile
@JackWangCS
JackWangCS / .md
Last active October 16, 2023 04:06
Starrocks JDBC connector TIME data type support

Prepare: Create resource and jdbc external table

Create resource:

create external resource jdbc0 
 properties (
    "type"="jdbc",
    "user"="test",
    "password"="test",
    "jdbc_uri"="jdbc:msqyl://127.0.0.1:/jdbc_test",
    "driver_url"="https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.30/mysql-connector-java-8.0.30.jar",
@JackWangCS
JackWangCS / HBaseDelegationTokenProvider tests.md
Last active July 23, 2022 17:39
Test logs for HBaseDelegationTokenProvider

Create EMR cluster with HBase and Kerberos enabled:

  1. Command to create an EMR cluster with Kerberos and HBase:
aws emr create-cluster --name "MyTestCluster2" \
--release-label emr-5.36.0 \
--instance-type m5.xlarge \
--instance-count 3 \
--ec2-attributes InstanceProfile=EMR_EC2_DefaultRole,KeyName=emr-test-keypair,SubnetId=subnet-xx,EmrManagedSlaveSecurityGroup=sg-xxx,EmrManagedMasterSecurityGroup=sg-xx,AdditionalMasterSecurityGroups=sg-xx,sg-xx \
@JackWangCS
JackWangCS / delegation-token-manager-fail-log.md
Last active July 19, 2022 08:22
Flink failed to submit due to delegation token manager

Command to create an EMR cluster with Kerberos and HBase:

aws emr create-cluster --name "MyTestCluster2" \
--release-label emr-5.36.0 \
--instance-type m5.xlarge \
--instance-count 3 \
--ec2-attributes InstanceProfile=EMR_EC2_DefaultRole,KeyName=emr-test-keypair,SubnetId=subnet-xx,EmrManagedSlaveSecurityGroup=sg-xxx,EmrManagedMasterSecurityGroup=sg-xx,AdditionalMasterSecurityGroups=sg-xx,sg-xx \
--service-role EMR_DefaultRole \
--security-configuration MyKerberosConfig \
--applications Name=Hadoop Name=Flink Name=HBase \