04 2017 档案
摘要:1、编写函数 package com.example.hive.udf; import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.Text; public final class LowerCase extends
阅读全文
摘要:之前做过一个例子,但是有问题,中间因为其他事情给耽搁了,就忘记了,今天帮同事查数据,要写一个UDF,又发现了同一个问题,最终解决了。下边整理一下我的小例子,由于hive表中存放的时间是Long型的字符串,需要将其转化成时间: 1、首先创建一个java项目,根据需要命名。 2、导入hive需要的jar
阅读全文
摘要:1:创建存储过程 此存储过程通过传入的参数(Name),返回一个参数(address)。 create or replace procedure demo_procedure(namedemo in varchar2,addressdemo out varchar2)asbegin select a
阅读全文
摘要:1:反向代理,通过反向代理,使客户访问你的网站的时候,可以跳转到你指定的网站 配置:/phpstudy/server/nginx/conf/nginx.conf 中 location / { index index.html index.htm index.php; proxy_pass http:
阅读全文

浙公网安备 33010602011771号