当前位置: 首页 > news >正文

检索网站怎么做小程序平台

检索网站怎么做,小程序平台,网站模板编辑工具,厦门网站推广¥做下拉去118crThrift JDBC Server描述 Thrift JDBC Server使用的是HIVE0.12的HiveServer2实现。能够使用Spark或者hive0.12版本的beeline脚本与JDBC Server进行交互使用。Thrift JDBC Server默认监听端口是10000。 使用Thrift JDBC Server前需要注意: 1、将hive-site.xml配置文件…

Thrift JDBC Server描述

Thrift JDBC Server使用的是HIVE0.12的HiveServer2实现。能够使用Spark或者hive0.12版本的beeline脚本与JDBC Server进行交互使用。Thrift JDBC Server默认监听端口是10000。

 

使用Thrift JDBC Server前需要注意:

1、将hive-site.xml配置文件拷贝到$SPARK_HOME/conf目录下;

2、需要在$SPARK_HOME/conf/spark-env.sh中的SPARK_CLASSPATH添加jdbc驱动的jar包

export SPARK_CLASSPATH=$SPARK_CLASSPATH:/home/hadoop/software/mysql-connector-java-5.1.27-bin.jar

 

Thrift JDBC Server命令使用帮助:

cd $SPARK_HOME/sbin
start-thriftserver.sh --help
Usage: ./sbin/start-thriftserver [options] [thrift server options]
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Options:--master MASTER_URL         spark://host:port, mesos://host:port, yarn, or local.--deploy-mode DEPLOY_MODE   Whether to launch the driver program locally ("client") oron one of the worker machines inside the cluster ("cluster")(Default: client).--class CLASS_NAME          Your application's main class (for Java / Scala apps).--name NAME                 A name of your application.--jars JARS                 Comma-separated list of local jars to include on the driverand executor classpaths.--py-files PY_FILES         Comma-separated list of .zip, .egg, or .py files to placeon the PYTHONPATH for Python apps.--files FILES               Comma-separated list of files to be placed in the workingdirectory of each executor.--conf PROP=VALUE           Arbitrary Spark configuration property.--properties-file FILE      Path to a file from which to load extra properties. If notspecified, this will look for conf/spark-defaults.conf.--driver-memory MEM         Memory for driver (e.g. 1000M, 2G) (Default: 512M).--driver-java-options       Extra Java options to pass to the driver.--driver-library-path       Extra library path entries to pass to the driver.--driver-class-path         Extra class path entries to pass to the driver. Note thatjars added with --jars are automatically included in theclasspath.--executor-memory MEM       Memory per executor (e.g. 1000M, 2G) (Default: 1G).--help, -h                  Show this help message and exit--verbose, -v               Print additional debug outputSpark standalone with cluster deploy mode only:--driver-cores NUM          Cores for driver (Default: 1).--supervise                 If given, restarts the driver on failure.Spark standalone and Mesos only:--total-executor-cores NUM  Total cores for all executors.YARN-only:--executor-cores NUM        Number of cores per executor (Default: 1).--queue QUEUE_NAME          The YARN queue to submit to (Default: "default").--num-executors NUM         Number of executors to launch (Default: 2).--archives ARCHIVES         Comma separated list of archives to be extracted into theworking directory of each executor.Thrift server options:--hiveconf <property=value>   Use value for given property

master的描述与Spark SQL CLI一致 

 

beeline命令使用帮助:

cd $SPARK_HOME/bin
beeline --help
Usage: java org.apache.hive.cli.beeline.BeeLine -u <database url>               the JDBC URL to connect to-n <username>                   the username to connect as-p <password>                   the password to connect as-d <driver class>               the driver class to use-e <query>                      query that should be executed-f <file>                       script file that should be executed--color=[true/false]            control whether color is used for display--showHeader=[true/false]       show column names in query results--headerInterval=ROWS;          the interval between which heades are displayed--fastConnect=[true/false]      skip building table/column list for tab-completion--autoCommit=[true/false]       enable/disable automatic transaction commit--verbose=[true/false]          show verbose error messages and debug info--showWarnings=[true/false]     display connection warnings--showNestedErrs=[true/false]   display nested errors--numberFormat=[pattern]        format numbers using DecimalFormat pattern--force=[true/false]            continue running script even after errors--maxWidth=MAXWIDTH             the maximum width of the terminal--maxColumnWidth=MAXCOLWIDTH    the maximum width to use when displaying columns--silent=[true/false]           be more silent--autosave=[true/false]         automatically save preferences--outputformat=[table/vertical/csv/tsv]   format mode for result display--isolation=LEVEL               set the transaction isolation level--help                          display this message

 

Thrift JDBC Server/beeline启动

启动Thrift JDBC Server:默认端口是10000

cd $SPARK_HOME/sbin
start-thriftserver.sh

如何修改Thrift JDBC Server的默认监听端口号?借助于--hiveconf

start-thriftserver.sh  --hiveconf hive.server2.thrift.port=14000

HiveServer2 Clients 详情参见:https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients

 

启动beeline

cd $SPARK_HOME/bin
beeline -u jdbc:hive2://hadoop000:10000/default -n hadoop

 

sql脚本测试

SELECT track_time, url, session_id, referer, ip, end_user_id, city_id FROM page_views WHERE city_id = -1000 limit 10;
SELECT session_id, count(*) c FROM page_views group by session_id order by c desc limit 10;

 

转载于:https://www.cnblogs.com/luogankun/p/3970006.html

http://www.lbrq.cn/news/2636065.html

相关文章:

  • 来宾市住房和城乡建设局网站北京seo方法
  • 企业免费建站是真的吗申请自己的网站
  • 长沙做个网站多少钱网络推广专家
  • 前端官网模板南宁关键词优化软件
  • 网站建设提升医院信息化水平关键词优化排名网站
  • 阿里妈妈用哪个软件做网站体验营销是什么
  • 资料查询网站建设注册安全工程师
  • win7在iis中新建一个网站优秀企业网站模板
  • 算命网站做竞价赚钱企业网络营销策划方案
  • 怎样做自己公司的网站领硕网站seo优化
  • 烟台福山建设工程监测网站百度搜索网页版
  • python wordpress api第三方关键词优化排名
  • 青岛外贸建设网站制作常用的网络推广方法
  • 在手机上怎么赚钱博客seo怎么做
  • 如何对网站做压力测试抖音关键词搜索排名收费
  • 做网站都需要准备什么网络推广培训课程内容
  • 如何制作课程网站模板下载微信运营
  • 做动画网站郑州seo优化顾问热狗
  • 网络建设可行性分析怀化网站seo
  • 社交网站设计附近成人电脑培训班
  • 扬州网站建设制作有了域名怎么建网站
  • 武汉微信网站建设站长之家网站流量查询
  • 佛山顺德容桂网站制作关键词网站排名查询
  • 威海专业网站建设营销软文范例大全100
  • 项目经理职责及工作范围搜索引擎优化的方法与技巧
  • 门户网站的定义百度指数使用方法
  • 静态网站做301重定向百度教育网站
  • 做韩国护的网站天津网站建设公司
  • 网站开发会计处理百度一下你就知道搜索引擎
  • 可以做女鞋批发的网站南宁网站seo大概多少钱
  • 【感知机】感知机(perceptron)学习算法知识点汇总
  • 什么是2米分辨率卫星影像数据?
  • DuoPlus支持导入文件批量配置云手机参数,还优化了批量操作和搜索功能!
  • [激光原理与应用-172]:测量仪器 - 能量(焦耳)与功率(瓦)的图示比较
  • 如何在NVIDIA H100 GPU上用Ollama以最高性能运行大语言模型
  • 《P3275 [SCOI2011] 糖果》