码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
Linux中判断hdfs文件是否存在
在Linux文件系统中,我们可以使用下面shell脚本判断某个文件是否存在: # 这里的-f参数判断$file是否存在 if [ ! -f "$file" ]; then echo "文件不存在!" fi 但是我们想判断hdfs上某个文件是否存在咋办呢?Hadoop内置提供了判断某个文件是否存在的命 ...
分类:系统相关   时间:2020-05-14 11:33:50    阅读次数:70
file_get_contents(): SSL operation failed with code 1...解决办法和stream_context_create作用
<?php $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); $response = file_get_contents("https://maps.co.we ...
分类:其他好文   时间:2020-05-14 11:23:00    阅读次数:65
Nginx支持WebSocket配置
记录一下Nginx代理WebSocket的配置 1 添加协议升级 在http模块添加协议升级配置 该配置用于将http协议升级为websocket协议 map说明:根据客户端请求中$http_upgrade的值,设定$connection_upgrade的值。 内容是设定规则。即$connectio ...
分类:Web程序   时间:2020-05-14 11:17:43    阅读次数:277
数据库连接超时Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
错误分析: 数据库连接已经关闭或者失效后仍然在执行操作,导致:mysql服务没返回数据 1.客户端连接池中连接,已经失效;但是:连接池还没有检测到;当操作数据库时,启用该连接,抛出该错误 2.mysql服务器,已关闭该连接,但:客户端连接池中该连接,尚未检测到。当用该连接操作数据库时,抛出该错。处理 ...
分类:数据库   时间:2020-05-14 11:14:18    阅读次数:107
442. Find All Duplicates in an Array
Share Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appe ...
分类:其他好文   时间:2020-05-14 11:11:27    阅读次数:60
三维点云深度学习与语义理解方法及关键技术
作者:若晨 Date:2020-05-14 来源:三维点云深度学习与语义理解方法及关键技术 这一次给大家带来在自动驾驶中关于三维点云的深度学习方法应用、三维场景语义理解的方法以及对应的关键技术介绍。 1.三维点云深度学习 在深度学习引入前,传统方法大多使用人工设计的特征[26-29] 以及随机森林( ...
分类:其他好文   时间:2020-05-14 10:48:49    阅读次数:85
selenium自动化之多窗口切换
在用selenium做自动化时,经常想要在多个窗口之间切换,首先要知道每一个窗口的唯一标识符(也就是“句柄”),然后通过句柄来进行不同窗口之间的切换。 打开一个新窗口 1 from selenium import webdriver 2 from time import sleep 3 4 driv ...
分类:其他好文   时间:2020-05-14 10:40:46    阅读次数:80
线程练习
# -*- coding: utf-8 -*- import json import threading import time import requests from openpyxl import load_workbook file ="data_xiancheng.xlsx" #要执行的文 ...
分类:编程语言   时间:2020-05-14 10:38:02    阅读次数:68
linux shell写一个城市地方的天气预报提醒
yum-yinstalljq[sqoop@uhadoop-mzwc2w-task3weather]$pwd/home/sqoop/scripts/weatherYouhavenewmailin/var/spool/mail/sqoop[sqoop@uhadoop-mzwc2w-task3weather]$catweather.sh#!/bin/bashecho‘------------------
分类:系统相关   时间:2020-05-14 01:23:05    阅读次数:133
Python第一条网络爬虫,爬取一个网页的内容
一、球赛结果预测代码部分函数测试。 二、用requests库函数访问搜狗网页20次。 1 import requests 2 from bs4 import BeautifulSoup 3 def getHTMLText(self): 4 try: 5 r=requests.get(url,time ...
分类:编程语言   时间:2020-05-13 23:42:42    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!