付费节目在B2B各项目里的2、3、4月逐月的 点播用户数播放大于5分钟的用户数。
先把所有的mid信息导入到创建的表wyz中,然后根据条件查询
CREATE TABLE `wyz`(
`dim_movie_mid` bigint
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n';
metric_durationtime>300
dim_oem_busmode=2B2B
节目名称:dimcache('movie',mid)
SP名称:dimcache('sp',dim_isp_id)
loaddata local inpath 'wyz.txt'into table wyz;
付费节目数据导出需求:根据dim_movie_mid来导出每个mid的2、3、4月逐月的点播用户数播放大于5分钟的用户数
二月
insert overwrite local directory'/tmp/300013' row format delimited fields terminated by ','
selectdimcache('sp',a.dim_isp_id),count(distinct (dim_user_uid)) fromfact_vod_history a join wyz on
a.dim_movie_mid=wyz.dim_movie_mid where
a.dim_oem_busmode=2 andmetric_durationtime>300 and day>='2016-02-01' and day <='2016-02-29'group by a.dim_isp_id;
查询tomcat进程:(先第一步,然后把显示的进程杀死,然后再重启统计平台)
[root@data ~]# ps -ef|grep tomcat
[root@data ~]# kill -9 26140
[root@data ~]#/opt/apache-tomcat-6.0.32/bin/startup.sh
(以下为重启后的信息)
Using CATALINA_BASE:/opt/apache-tomcat-6.0.32
Using CATALINA_HOME:/opt/apache-tomcat-6.0.32
Using CATALINA_TMPDIR:/opt/apache-tomcat-6.0.32/temp
Using JRE_HOME:/opt/jdks/curr_jdk
Using CLASSPATH:/opt/apache-tomcat-6.0.32/bin/bootstrap.jar
这两个是查看日志进程的,目前还不太会,后面再做详解
[root@data ~]# ps -ef|grep tomcat
root241723370 17:43 pts/000:00:00 tail -fn 200/opt/apache-tomcat-6.0.32/logs/catalina.out
root25461 17 17:43 pts/100:00:23 /opt/jdks/curr_jdk/bin/java-Djava.util.logging.config.file=/opt/apache-tomcat-