码迷,mamicode.com
首页 >  
搜索关键字:local time    ( 77187个结果
python 装饰器 log
定义logger方法: import loggingimport osimport timeimport utilsdata=time.strftime("%Y-%m-%d-%H:%M:%S")logging.basicConfig(filename=utils.get_project_path() ...
分类:编程语言   时间:2021-06-02 19:50:48    阅读次数:0
Nginx 开启,关闭,重启,查看命令,错误解决:Job for nginx.service failed because the control process exited with error code
启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下: 1.nginx配置文件有错误 运行下面命令查 ...
分类:其他好文   时间:2021-06-02 19:50:08    阅读次数:0
Python函数装饰器高级用法
在了解了Python函数装饰器基础知识和闭包之后,开始正式学习函数装饰器。 典型的函数装饰器 以下示例定义了一个装饰器,输出函数的运行时间: 函数装饰器和闭包紧密结合,入参func代表被装饰函数,通过自由变量绑定后,调用函数并返回结果。 使用clock装饰器: import time from cl ...
分类:编程语言   时间:2021-06-02 19:37:36    阅读次数:0
09 spark连接mysql数据库
spark连接mysql数据库 安装启动检查Mysql服务。netstat -tunlp (3306) spark 连接mysql驱动程序。 cd /usr/local/hive/lib ls mysql* cp mysql-connector-java-5.1.40-bin.jar /usr/lo ...
分类:数据库   时间:2021-06-02 19:08:19    阅读次数:0
09 spark连接mysql数据库
1. 安装启动检查Mysql服务。##netstat -tunlp (3306) cd /usr/local/hive/lib ls mysql* cp mysql-connector-java-5.1.40-bin.jar /usr/local/spark/jars/ cd /usr/local/ ...
分类:数据库   时间:2021-06-02 19:00:44    阅读次数:0
09 spark连接mysql数据库
09 spark连接mysql数据库 spark连接mysql数据库 1、安装启动检查Mysql服务。 netstat -tunlp (3306) 2、spark 连接mysql驱动程序。 –cp /usr/local/hive/lib/mysql-connector-java-5.1.40-bin ...
分类:数据库   时间:2021-06-02 18:54:48    阅读次数:0
spark连接mysql数据库
安装启动检查Mysql服务。netstat -tunlp (3306) spark 连接mysql驱动程序。–cp /usr/local/hive/lib/mysql-connector-java-5.1.40-bin.jar /usr/local/spark/jars 启动 Mysql shell ...
分类:数据库   时间:2021-06-02 18:50:45    阅读次数:0
Docker 安装 Tomcat
1. 拉取镜像 docker pull tomcat 2.查看镜像 docker images 3.Docker运行tomcat镜像首先创建挂载目录 mkdir /usr/local/gep/tomcat/ 运行tomcat镜像 docker run --name='gep_tomcat' \ -i ...
分类:其他好文   时间:2021-06-02 18:48:15    阅读次数:0
DQL语句
一般查询 字段取别名 别名不用加单引号,as可省略 select t.id ID, t.name 名称 from grade t; 拼接字符串 concat(a,b):不能用|| select concat('姓名:', t.name) 新名字 from student t; 字段去重 select ...
分类:其他好文   时间:2021-06-02 18:42:52    阅读次数:0
其他(handel_jsonl-format_date)
其他: 1 处理jsonl文件 #!\Users\Local\Programs\Python37 # -*- coding: utf-8 -*- import json def save_data_jsonl(data_dict_list,path="./new_id_source.jsonl"): ...
分类:Web程序   时间:2021-06-02 18:34:04    阅读次数:0
77187条   上一页 1 ... 17 18 19 20 21 ... 7719 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!