检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
table.put(puts); LOG.info("Put successfully."); } catch (IOException e) { LOG.error("Put failed " ,e); } finally { if (table
resultSet.getCount(); LOG.info("the entity count of query is " + count); } catch (IOException e) { LOG.error("testCountOnlyQuery failed
public class Main { private static String URL = "jdbc:mysql:loadbalance://" + "[FE1_host]:[FE1_port],[FE2_host]:[FE2_port],[FE3_host
- X-Language 请求语言,支持配置如下值: zh-cn:中文 en-us:英文 是 en-us X-Domain-Id 账号ID。
代码样例 下面代码片段在com.huawei.cloudtable.lemonIndex.examples.LemonIndexTestMain包中。
"); } catch (IOException e) { LOG.error("Put failed ", e); } LOG.info("Exiting testPut."); } 父主题: 样例代码说明
"); } else { LOG.warn("table already exists"); } } catch (IOException e) { LOG.error("Create table failed.
表5 Instance 参数 是否必选 参数类型 描述 availability_zone 是 String 集群所在可用区的ID。 cu_num 是 Integer CloudTable集群计算单元节点数目,至少为2。
12005000205 E Female 21 Shangrao, Jiangxi 12005000206 F Male 32 Zhuzhou, Hunan 12005000207 G Female 29 Nanyang, Henan 12005000208 H Female 30 Kaixian
虚拟专用网络(VPN):VPN用于在线下数据中心和云上VPC之间建立一条安全加密的公网通信隧道。更多信息请参见什么是虚拟专用网络章节。 CloudTable集群访问对端集群,需要为集群添加路由。 说明: 路由添加请联系技术人员。
default_cluster(Year UInt16,Quarter UInt8,Month UInt8,DayofMonth UInt8,DayOfWeek UInt8,FlightDate Date,FlightNum String,Div5WheelsOff String,Div5TailNum
“Main Class”选择“com.xxx.clickhouse.examples.Demo”,单击OK。 选择“Build> Build Artifacts”。
static final Log LOG = LogFactory.getLog(DataCopyer.class); private static int batchSize; private static int threads; public static void main
${i_cp} ${SECURE} com.huawei.cloudtable.hbase.examples.TestMain 切换到“/opt/test”,执行以下命令,运行Jar包。
curl -X POST -H 'Content-Type: text/plain' --cacert {path}/certificate.crt -uadmin https://host:port/api/query_schema/internal/test_db -d@1.sql
availability_zone String 集群所属的可用区。 表4 Datastore 参数 参数类型 描述 version String controller版本号,默认1.0.6。 type String 集群数据库类型。 请求示例 查询集群详情 URL示例。
password = System.getenv("USER_PASSWORD"); return DriverManager.getConnection(URL, "admin", password); } public static void main
≥0 60s SYS.CloudTable jvm_thread_waiting_count waiting状态的线程数 观测JVM线程数是否合理。
port获取:单击配置,进入配置页面,搜索“port”,获取端口(该port是Broker服务监听的PLAINTEXT协议端口号)。
query_detail_history_storage_life_time_in_days 7 否 int 未更改 day (0,31) 7 该参数表示慢查询记录的保存时间,超过这个时间的记录会被清除。