Release Notes
Announcements

goosefs table commands shown below, which can be used to attach/detach databases, query database/table information, load/free data, and more.$ goosefs tableUsage: goosefs table [generic options][attachdb [-o|--option <key=value>] [--db <goosefs db name>] [--ignore-sync-errors] <udb type> <udb connection uri> <udb db name>][detachdb <db name>][free <dbName> <tableName> [-p|--partition <partitionSpec>]][load <dbName> <tableName> [-g|--greedy] [--replication <num>] [-p|--partition <partitionSpec>]][ls [<db name> [<table name>]]][stat <dbName> <tableName>][sync <db name>]
replication to specify the number of replicas to cache.goosefs_db_demo from metastore_host:port to GooseFS and name this database test_db in GooseFS:$ goosefs table attachdb --db test_db hive thrift://metastore_host:port goosefs_db_demoresponse of attachdb
metastore_host:port with any valid and connectable Hive Metastore address.ls command to view the attached database and table information. The following command shows how to query information about the web_page table in test_db:$ goosefs table ls test_db web_pageOWNER: hadoopDBNAME.TABLENAME: testdb.web_page (wp_web_page_sk bigint,wp_web_page_id string,wp_rec_start_date string,wp_rec_end_date string,wp_creation_date_sk bigint,wp_access_date_sk bigint,wp_autogen_flag string,wp_customer_sk bigint,wp_url string,wp_type string,wp_char_count int,wp_link_count int,wp_image_count int,wp_max_ad_count int,)PARTITIONED BY ()LOCATION (gfs://metastore_host:port/myiNamespace/3000/web_page)PARTITION LIST ({partitionName: web_pagelocation: gfs://metastore_host:port/myNamespace/3000/web_page})
job stat <ID> command to view the running status of the job, or run the table stat command to view the percentage cached. The data loading command is as follows:$ goosefs table load test_db web_pageAsynchronous job submitted successfully, jobId: 1615966078836
job stat command to view the execution progress of the table loading job. If the status is COMPLETED, the table has been loaded successfully. If the status is FAILED, you can view the logs in master.log to troubleshoot.$ goosefs job stat 1615966078836COMPLETED
stat command to view the statistics on the table.$ goosefs table stat test_db web_pagedetail
$ goosefs table free test_db web_pagedetail
$ goosefs table detachdb test_dbdetail
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários