Program terminated with status: 1. stderr follows

Program terminated with status: 1. stderr follows: Error: C:\Users\AppData\Local\Temp\tmpx6oir6n9: syntax error in line 1 near ‘’

大家好:我正在做吴恩达老师第四课第二周练习一:Keras - Tutorial - Happy House 碰到了一个奇怪的问题,找了很久都不知道原因,望大家能帮忙找出原因,在下不胜感激。

代码:(最后一个cell)

plot_model(happyModel,to_file=‘HappyModel.png’)
SVG(model_to_dot(happyModel).create(prog=‘dot’, format=‘svg’))

错误:

InvocationException Traceback (most recent call last)
in
6 #plot_model(happyModel,to_file=‘HappyModel.png’)
7 #plot_model(happyModel,to_file=‘E:/software/python/Jupyter/COURSE 4 Convolutional Neural Networks/Week 02/KerasTutorial/HappyModel.png’)
----> 8 plot_model(happyModel,to_file=‘HappyModel.png’)
9 SVG(model_to_dot(happyModel).create(prog=‘dot’, format=‘svg’))
10 #import os

E:\software\Anaconda\lib\site-packages\keras\utils\vis_utils.py in plot_model(model, to_file, show_shapes, show_layer_names, rankdir, expand_nested, dpi)
238 “”"
239 dot = model_to_dot(model, show_shapes, show_layer_names, rankdir,
–> 240 expand_nested, dpi)
241 _, extension = os.path.splitext(to_file)
242 if not extension:

E:\software\Anaconda\lib\site-packages\keras\utils\vis_utils.py in model_to_dot(model, show_shapes, show_layer_names, rankdir, expand_nested, dpi, subgraph)
77 from …models import Sequential
78
—> 79 _check_pydot()
80 if subgraph:
81 dot = pydot.Cluster(style=‘dashed’, graph_name=model.name)

E:\software\Anaconda\lib\site-packages\keras\utils\vis_utils.py in _check_pydot()
26 # Attempt to create an image of a blank graph
27 # to check the pydot/graphviz installation.
—> 28 pydot.Dot.create(pydot.Dot())
29 except OSError:
30 raise OSError(

E:\software\Anaconda\lib\site-packages\pydot_ng_init_.py in create(self, prog, format)
1889 raise InvocationException(
1890 ‘Program terminated with status: %d. stderr follows: %s’ % (
-> 1891 status, stderr_output))
1892 elif stderr_output:
1893 print(stderr_output)

InvocationException: Program terminated with status: 1. stderr follows: Error: C:\Users\AppData\Local\Temp\tmpx6oir6n9: syntax error in line 1 near ‘’

1个回答

syntax error in line 1 near
第一行附近语法错误,不给代码可怎么看

weixin_44967421
阿君君君 首先非常感谢你宝贵的时间来回答这个问题,这些问题都很奇怪,那个文件夹应该是自动生成的
6 个月之前 回复
weixin_44967421
阿君君君 这个文件夹里(~Local\Temp\tmpx6oir6n9)只有这么一行语句:digraph G { }
6 个月之前 回复
weixin_44967421
阿君君君 这个文件夹里(~Local\Temp\tmpx6oir6n9)只有这么一行语句:digraph G { }
6 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
REDIES异常终止,大神可否指点一二
REDIS异常日志如下: 5389:M 03 Jun 08:15:45.564 * Background saving started by pid 27834 5389:M 03 Jun 11:11:26.573 # Background saving terminated by signal 9 5389:M 03 Jun 11:11:27.042 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:11:29.635 * Background saving started by pid 1929 5389:M 03 Jun 11:29:05.541 # Background saving terminated by signal 9 5389:M 03 Jun 11:29:05.689 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:29:08.293 * Background saving started by pid 2613 5389:M 03 Jun 11:31:33.365 # Background saving terminated by signal 9 5389:M 03 Jun 11:31:33.521 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:31:36.128 * Background saving started by pid 2699 5389:M 03 Jun 11:31:48.191 # Background saving terminated by signal 9 5389:M 03 Jun 11:31:48.303 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:31:50.893 * Background saving started by pid 2700 5389:M 03 Jun 11:32:04.061 # Background saving terminated by signal 9 5389:M 03 Jun 11:32:04.167 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:32:06.780 * Background saving started by pid 2726 5389:M 03 Jun 11:48:51.552 # Background saving terminated by signal 9 5389:M 03 Jun 11:48:51.725 * 1 changes in 900 seconds. Saving... 5389:M 03 Jun 11:48:54.324 * Background saving started by pid 3345 5389:M 03 Jun 11:49:19.028 # Background saving terminated by signal 9 5389:M 03 Jun 11:49:19.141 * 1 changes in 900 seconds. Saving...
用VPS服务器自建了一个VPN服务,联通3G卡可以上网,Wifi连接拨号不行
自己用VPS服务器建了一个VPN的服务器,建立方式可以参考我的博客:http://www.xcoder.cn/index.php/archives/1214 现在出现了这样一个问题,家里是移动的宽带(PPPoE拨号),直接将线接在电脑(Macbook Pro)上连接不了我的VPN服务,通过Wifi连接后,我手机和电脑都不能连接到VPN服务,但是如果手机使用联通的3G卡(iPhone手机)上网可以拨号,再使用我妈的移动手机Android系统也能够拨号。 电脑上使用VPN拨号后出现这样的错误消息: 14-6-7 下午1:20:45.125 configd[57]: SCNC: start, triggered by (694) SystemUIServer, type PPTP, status 0, trafficClass 0 14-6-7 下午1:20:45.151 pppd[1325]: publish_entry SCDSet() failed: Success! 14-6-7 下午1:20:45.151 pppd[1325]: publish_entry SCDSet() failed: Success! 14-6-7 下午1:20:45.152 pppd[1325]: pppd 2.4.2 (Apple version 727.90.1) started by admin, uid 501 14-6-7 下午1:20:45.153 pppd[1325]: PPTP connecting to server '113.10.158.9' (113.10.158.9)... 14-6-7 下午1:20:45.262 pppd[1325]: PPTP connection established. 14-6-7 下午1:20:45.000 kernel[0]: ppp0: is now delegating en1 (type 0x6, family 2, sub-family 3) 14-6-7 下午1:20:45.264 pppd[1325]: Connect: ppp0 <--> socket[34:17] 14-6-7 下午1:20:45.298 pppd[1325]: PPTP error when reading socket : EOF 14-6-7 下午1:20:45.298 pppd[1325]: PPTP error when reading header : read -1, expected 12 bytes 14-6-7 下午1:20:45.298 pppd[1325]: PPTP hangup 14-6-7 下午1:20:45.298 pppd[1325]: Connection terminated. 14-6-7 下午1:20:45.299 pppd[1325]: PPTP disconnecting... 14-6-7 下午1:20:45.300 pppd[1325]: PPTP disconnected 14-6-7 下午1:20:55.376 AirPlayUIAgent[506]: 2014-06-07 01:20:55.376182 PM [AirPlayUIAgent] Changed PIN pairing: no 14-6-7 下午1:20:55.414 AirPlayUIAgent[506]: 2014-06-07 01:20:55.413498 PM [AirPlayUIAgent] Changed PIN pairing: no 求大神帮忙解决一下吧!拜托了!估计是VPN服务器的配置问题吧!
使用MediaCodec解码H264时报错
private boolean onFrame(byte[] buf, int offset, int length){ // 获取输入buffer index ByteBuffer[] inputBuffers = mMediaCodec.getInputBuffers(); //-1表示一直等待;0表示不等待;其他大于0的参数表示等待毫秒数 int inputBufferIndex; try{ inputBufferIndex = mMediaCodec.dequeueInputBuffer(-1); }catch (Exception e){ return false; } if (inputBufferIndex >= 0) { ByteBuffer inputBuffer = inputBuffers[inputBufferIndex]; //清空buffer inputBuffer.clear(); //put需要解码的数据 inputBuffer.put(buf, offset, length); //解码 mMediaCodec.queueInputBuffer(inputBufferIndex, 0, length, System.currentTimeMillis(), 0); } else { return false; } // 获取输出buffer index MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); int outputBufferIndex = mMediaCodec.dequeueOutputBuffer(bufferInfo, 100); //循环解码,直到数据全部解码完成 while (outputBufferIndex >= 0) { //true : 将解码的数据显示到surface上 mMediaCodec.releaseOutputBuffer(outputBufferIndex, true); outputBufferIndex = mMediaCodec.dequeueOutputBuffer(bufferInfo, 0); } return true; } ## Android4.4调用 MediaCodec.queueInputBuffer()时报错 04-30 11:11:38.028 113-113/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 04-30 11:11:38.028 113-113/? I/DEBUG: Build fingerprint: 'rockchip/M1/M1:4.4.4/KTU84Q/rk3188.20170911.162732:user/test-keys' 04-30 11:11:38.028 113-113/? I/DEBUG: Revision: '0' 04-30 11:11:38.028 113-113/? I/DEBUG: pid: 3141, tid: 3191, name: CodecLooper >>> com.zao.edu <<< 04-30 11:11:38.028 113-113/? I/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 04-30 11:11:38.108 113-113/? I/DEBUG: r0 00000000 r1 00000c77 r2 00000006 r3 00000000 04-30 11:11:38.108 113-113/? I/DEBUG: r4 00000006 r5 00000000 r6 00000c77 r7 0000010c 04-30 11:11:38.108 113-113/? I/DEBUG: r8 00000001 r9 00319200 sl 00000000 fp 00000000 04-30 11:11:38.108 113-113/? I/DEBUG: ip 00000001 sp 71658748 lr 400f309d pc 40102048 cpsr 000f0010 04-30 11:11:38.108 113-113/? I/DEBUG: d0 203a64656c696166 d1 202b207465736666 04-30 11:11:38.108 113-113/? I/DEBUG: d2 61436d2c657a6973 d3 2029797469636170 04-30 11:11:38.108 113-113/? I/DEBUG: d4 646e756f662f7468 d5 42412f6e6f697461 04-30 11:11:38.108 113-113/? I/DEBUG: d6 70632e7265666675 d7 4548432038353a70 04-30 11:11:38.108 113-113/? I/DEBUG: d8 0000000000000000 d9 0000000000000000 04-30 11:11:38.108 113-113/? I/DEBUG: d10 0000000000000000 d11 0000000000000000 04-30 11:11:38.108 113-113/? I/DEBUG: d12 0000000000000000 d13 0000000000000000 04-30 11:11:38.108 113-113/? I/DEBUG: d14 0000000000000000 d15 0000000000000000 04-30 11:11:38.108 113-113/? I/DEBUG: d16 402e000000000000 d17 402f000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d18 0000000000000000 d19 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d20 3ff0000000000000 d21 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d22 0000000000000000 d23 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d24 402c000000000000 d25 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d26 3ff0000000000000 d27 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d28 402c000000000000 d29 0000000000000000 04-30 11:11:38.118 113-113/? I/DEBUG: d30 000000000000001f d31 0000000000000021 04-30 11:11:38.118 113-113/? I/DEBUG: scr 60000013 04-30 11:11:38.118 113-113/? I/DEBUG: backtrace: 04-30 11:11:38.118 113-113/? I/DEBUG: #00 pc 00022048 /system/lib/libc.so (tgkill+12) 04-30 11:11:38.118 113-113/? I/DEBUG: #01 pc 00013099 /system/lib/libc.so (pthread_kill+48) 04-30 11:11:38.118 113-113/? I/DEBUG: #02 pc 000132ad /system/lib/libc.so (raise+10) 04-30 11:11:38.118 113-113/? I/DEBUG: #03 pc 00011fe3 /system/lib/libc.so 04-30 11:11:38.118 113-113/? I/DEBUG: #04 pc 000218fc /system/lib/libc.so (abort+4) 04-30 11:11:38.118 113-113/? I/DEBUG: #05 pc 000014c3 /system/lib/liblog.so (__android_log_assert+86) 04-30 11:11:38.118 113-113/? I/DEBUG: #06 pc 00008a07 /system/lib/libstagefright_foundation.so (android::ABuffer::setRange(unsigned int, unsigned int)+138) 04-30 11:11:38.118 113-113/? I/DEBUG: #07 pc 000597ff /system/lib/libstagefright.so (android::ACodec::BaseState::onOMXFillBufferDone(void*, unsigned int, unsigned int, unsigned long, long long, void*, void*)+402) 04-30 11:11:38.118 113-113/? I/DEBUG: #08 pc 00059c4b /system/lib/libstagefright.so (android::ACodec::BaseState::onOMXMessage(android::sp<android::AMessage> const&)+610) 04-30 11:11:38.118 113-113/? I/DEBUG: #09 pc 0005a0ed /system/lib/libstagefright.so (android::ACodec::ExecutingState::onMessageReceived(android::sp<android::AMessage> const&)+536) 04-30 11:11:38.118 113-113/? I/DEBUG: #10 pc 00008c7f /system/lib/libstagefright_foundation.so (android::AHierarchicalStateMachine::onMessageReceived(android::sp<android::AMessage> const&)+82) 04-30 11:11:38.118 113-113/? I/DEBUG: #11 pc 0000981d /system/lib/libstagefright_foundation.so (android::ALooperRoster::deliverMessage(android::sp<android::AMessage> const&)+152) 04-30 11:11:38.118 113-113/? I/DEBUG: #12 pc 000091e7 /system/lib/libstagefright_foundation.so (android::ALooper::loop()+198) 04-30 11:11:38.118 113-113/? I/DEBUG: #13 pc 0000e9ed /system/lib/libutils.so (android::Thread::_threadLoop(void*)+104) 04-30 11:11:38.118 113-113/? I/DEBUG: #14 pc 0000e58f /system/lib/libutils.so 04-30 11:11:38.118 113-113/? I/DEBUG: #15 pc 0000d228 /system/lib/libc.so (__thread_entry+72) 04-30 11:11:38.118 113-113/? I/DEBUG: #16 pc 0000d3c0 /system/lib/libc.so (pthread_create+240) 04-30 11:11:38.118 113-113/? I/DEBUG: stack: 04-30 11:11:38.118 113-113/? I/DEBUG: 71658708 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 7165870c 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658710 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658714 000003ff 04-30 11:11:38.118 113-113/? I/DEBUG: 71658718 00319200 04-30 11:11:38.118 113-113/? I/DEBUG: 7165871c 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658720 00000001 04-30 11:11:38.118 113-113/? I/DEBUG: 71658724 00000001 04-30 11:11:38.118 113-113/? I/DEBUG: 71658728 00319200 04-30 11:11:38.118 113-113/? I/DEBUG: 7165872c 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658730 400890b1 /system/lib/liblog.so 04-30 11:11:38.118 113-113/? I/DEBUG: 71658734 4008a5f9 /system/lib/liblog.so 04-30 11:11:38.118 113-113/? I/DEBUG: 71658738 716587ac 04-30 11:11:38.118 113-113/? I/DEBUG: 7165873c 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658740 4012a1d8 /system/lib/libc.so 04-30 11:11:38.118 113-113/? I/DEBUG: 71658744 66d7c6c8 04-30 11:11:38.118 113-113/? I/DEBUG: #00 71658748 00000006 04-30 11:11:38.118 113-113/? I/DEBUG: 7165874c 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658750 00000c77 04-30 11:11:38.118 113-113/? I/DEBUG: 71658754 00000001 04-30 11:11:38.118 113-113/? I/DEBUG: 71658758 00000001 04-30 11:11:38.118 113-113/? I/DEBUG: 7165875c 400f309d /system/lib/libc.so (pthread_kill+52) 04-30 11:11:38.118 113-113/? I/DEBUG: #01 71658760 00000006 04-30 11:11:38.118 113-113/? I/DEBUG: 71658764 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 71658768 00000000 04-30 11:11:38.118 113-113/? I/DEBUG: 7165876c 400f32b1 /system/lib/libc.so (raise+14) 04-30 11:11:38.118 113-113/? I/DEBUG: #02 71658770 7165877c 04-30 11:11:38.118 113-113/? I/DEBUG: 71658774 400f1fe7 /system/lib/libc.so 04-30 11:11:38.118 113-113/? I/DEBUG: memory near r9: 04-30 11:11:38.118 113-113/? I/DEBUG: 003191e0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 003191f0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319200 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319210 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319220 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319230 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319240 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319250 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319260 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319270 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319280 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 00319290 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 003192a0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 003192b0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 003192c0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: 003192d0 ffffffff ffffffff ffffffff ffffffff 04-30 11:11:38.128 113-113/? I/DEBUG: memory near sp: 04-30 11:11:38.128 113-113/? I/DEBUG: 71658728 00319200 00000000 400890b1 4008a5f9 04-30 11:11:38.128 113-113/? I/DEBUG: 71658738 716587ac 00000000 4012a1d8 66d7c6c8 04-30 11:11:38.128 113-113/? I/DEBUG: 71658748 00000006 00000000 00000c77 00000001 04-30 11:11:38.128 113-113/? I/DEBUG: 71658758 00000001 400f309d 00000006 00000000 04-30 11:11:38.128 113-113/? I/DEBUG: 71658768 00000000 400f32b1 7165877c 400f1fe7 04-30 11:11:38.128 113-113/? I/DEBUG: 71658778 00004000 ffffffdf 2a2a2a2a 7165877c 04-30 11:11:38.128 113-113/? I/DEBUG: 71658788 00000001 b25da946 00000007 00000000 04-30 11:11:38.128 113-113/? I/DEBUG: 71658798 00319200 40101900 400890b1 400894c7 04-30 11:11:38.128 113-113/? I/DEBUG: 716587a8 71658bbc 6d617266 726f7765 612f736b 04-30 11:11:38.128 113-113/? I/DEBUG: 716587b8 656d2f76 2f616964 7362696c 65676174 04-30 11:11:38.128 113-113/? I/DEBUG: 716587c8 67697266 662f7468 646e756f 6f697461 04-30 11:11:38.128 113-113/? I/DEBUG: 716587d8 42412f6e 65666675 70632e72 38353a70 04-30 11:11:38.128 113-113/? I/DEBUG: 716587e8 45484320 4c5f4b43 6f202845 65736666 04-30 11:11:38.128 113-113/? I/DEBUG: 716587f8 202b2074 657a6973 61436d2c 69636170 04-30 11:11:38.128 113-113/? I/DEBUG: 71658808 20297974 6c696166 203a6465 38343233 04-30 11:11:38.128 113-113/? I/DEBUG: 71658818 20303436 202e7376 32383331 00303034 04-30 11:11:38.128 113-113/? I/DEBUG: code around pc: 04-30 11:11:38.128 113-113/? I/DEBUG: 40102028 e8bd00f0 e3700a01 912fff1e e2600000 04-30 11:11:38.128 113-113/? I/DEBUG: 40102038 ea006e3d e92d50f0 e3a07f43 ef000000 04-30 11:11:38.128 113-113/? I/DEBUG: 40102048 e8bd50f0 e3700a01 912fff1e e2600000 04-30 11:11:38.128 113-113/? I/DEBUG: 40102058 ea006e35 e92d50f0 e3a070ee ef000000 04-30 11:11:38.128 113-113/? I/DEBUG: 40102068 e8bd50f0 e3700a01 912fff1e e2600000 04-30 11:11:38.128 113-113/? I/DEBUG: 40102078 ea006e2d f200429a bf0080cf f000f891 04-30 11:11:38.128 113-113/? I/DEBUG: 40102088 4001e92d f040f891 d3532a10 0301ea80 04-30 11:11:38.128 113-113/? I/DEBUG: 40102098 0303f013 806ef000 d3262ae0 0300f1c0 04-30 11:11:38.128 113-113/? I/DEBUG: 401020a8 030ff013 eba2d021 ea5f0203 bf447cc3 04-30 11:11:38.128 113-113/? I/DEBUG: 401020b8 eb01f811 eb01f800 f811bf21 f811cb01 04-30 11:11:38.128 113-113/? I/DEBUG: 401020c8 f800eb01 f800cb01 ea5feb01 da037c43 04-30 11:11:38.128 113-113/? I/DEBUG: 401020d8 080df9a1 083df980 f921d303 f900070d 04-30 11:11:38.128 113-113/? I/DEBUG: 401020e8 f891071d f891f000 3a40f040 f891d30f 04-30 11:11:38.128 113-113/? I/DEBUG: 401020f8 f891f080 f921f0c0 f921020d f891420d 04-30 11:11:38.128 113-113/? I/DEBUG: 40102108 3a40f0c0 020df900 420df900 f102d2f3 04-30 11:11:38.128 113-113/? I/DEBUG: 40102118 3a200240 f921d305 3a20020d 020df900 04-30 11:11:38.128 113-113/? I/DEBUG: code around lr: 04-30 11:11:38.128 113-113/? I/DEBUG: 400f307c 447b4b13 42b3e010 6a1ed10e 44784811 04-30 11:11:38.128 113-113/? I/DEBUG: 400f308c ec84f7fb ea0ef00d 46224631 efd0f00e 04-30 11:11:38.128 113-113/? I/DEBUG: 400f309c d00a3001 e00b2400 2b00681b 480ad1eb 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30ac 44782403 ec72f7fb f001e002 6804fa23 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30bc fa20f001 46206005 bf00bd70 0003b326 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30cc 0003b31a 0003b312 0003b2ee bf7ef7ff 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30dc 4a3e4b3d e92d447b b08b43f0 4606589c 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30ec 6823460d 930946a1 fa04f001 8000f8d0 04-30 11:11:38.128 113-113/? I/DEBUG: 400f30fc d0482d00 f00f4628 280ffe91 d8444604 04-30 11:11:38.128 113-113/? I/DEBUG: 400f310c ffe4f7ff d1064286 4629200f e8d8f00d 04-30 11:11:38.128 113-113/? I/DEBUG: 400f311c d03c2800 482ee02e f7fb4478 482debb6 04-30 11:11:38.128 113-113/? I/DEBUG: 400f312c e0154478 d11342b0 482b6a06 f7fb4478 04-30 11:11:38.128 113-113/? I/DEBUG: 400f313c 4a2aec2e 46332120 a801447a f9b2f013 04-30 11:11:38.128 113-113/? I/DEBUG: 400f314c a8012101 fcccf01a 46061c42 e011d104 04-30 11:11:38.128 113-113/? I/DEBUG: 400f315c 28006800 e02cd1e6 46294630 f00d4622 04-30 11:11:38.128 113-113/? I/DEBUG: 400f316c 1c43e914 d11e4607 f9c4f001 29046801 --------- beginning of /dev/log/system 04-30 11:11:38.328 435-456/? I/BootReceiver: Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE) 04-30 11:11:38.328 435-3215/? W/ActivityManager: Force finishing activity com.zao.edu/.activitys.OneScreenActivity 04-30 11:11:38.348 118-1000/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything... 04-30 11:11:38.368 435-463/? W/InputDispatcher: channel '41d843a8 com.zao.edu/com.zao.edu.activitys.HomeActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 04-30 11:11:38.368 435-463/? E/InputDispatcher: channel '41d843a8 com.zao.edu/com.zao.edu.activitys.HomeActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 04-30 11:11:38.368 435-463/? W/InputDispatcher: channel '41d8ffb0 (server)' ~ Consumer closed input channel or an error occurred. events=0x9 04-30 11:11:38.368 435-463/? E/InputDispatcher: channel '41d8ffb0 (server)' ~ Channel is unrecoverably broken and will be disposed! 04-30 11:11:38.368 435-463/? W/InputDispatcher: channel '41deafa0 com.zao.edu/com.zao.edu.activitys.OneScreenActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 04-30 11:11:38.368 435-463/? E/InputDispatcher: channel '41deafa0 com.zao.edu/com.zao.edu.activitys.OneScreenActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 04-30 11:11:38.368 116-116/? D/Zygote: Process 3141 terminated by signal (6)
我上传文件时报不能大于10M,我配置文件已经修改了,怎么解决????
Caused by: org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: UT000020: Connection terminated as request was larger than 10485760 at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:165) [spring-web-4.0.6.RELEASE.jar:4.0.6.RELEASE] at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142) [spring-web-4.0.6.RELEASE.jar:4.0.6.RELEASE] at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1067) [spring-webmvc-4.0.6.RELEASE.jar:4.0.6.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:906) [spring-webmvc-4.0.6.RELEASE.jar:4.0.6.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) [spring-webmvc-4.0.6.RELEASE.jar:4.0.6.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) [spring-webmvc-4.0.6.RELEASE.jar:4.0.6.RELEASE] ... 57 more Caused by: org.apache.commons.fileupload.FileUploadException: UT000020: Connection terminated as request was larger than 10485760 at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:369) [commons-fileupload-1.2.jar:1.2] at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126) [commons-fileupload-1.2.jar:1.2] at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:158) [spring-web-4.0.6.RELEASE.jar:4.0.6.RELEASE] ... 62 more 这是我的配置文件 <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <!-- one of the properties available; the maximum file size in bytes --> <property name="maxUploadSize" value="99999999999" /> </bean>
IDEA中gradle无法build或者refresh项目
build或者refresh的时候会卡在gradle:build这个步骤,然后daemon就超时了,错误提示如下 Error:Timeout waiting to connect to the Gradle daemon. Daemon uid: 4aa9dc3c-21a2-4eec-97ab-4f498f453a32 with diagnostics: Daemon pid: 3524 log file: C:\Users\Lancer\.gradle\daemon\2.12\daemon-3524.out.log ----- Last 20 lines from daemon log file - daemon-3524.out.log ----- 14:16:28.533 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 14:16:28.536 [LIFECYCLE] [org.gradle.launcher.daemon.server.Daemon] Daemon server started. 14:16:28.539 [DEBUG] [org.gradle.launcher.daemon.bootstrap.DaemonStartupCommunication] Completed writing the daemon greeting. Closing streams... 14:16:28.540 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] requestStopOnIdleTimeout(60000 MILLISECONDS) called on daemon 14:16:28.540 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Idle timeout: waiting for daemon to stop or be idle for 60000ms 14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Idle timeout: daemon has been idle for requested period. Stopping now. 14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Marking daemon stopped due to idle timeout. The daemon is running a build: false 14:16:28.541 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] stop() called on daemon 14:16:28.541 [INFO] [org.gradle.launcher.daemon.server.Daemon] Stop requested. Daemon is removing its presence from the registry... 14:16:28.542 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Removing our presence to clients, eg. removing this address from the registry: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]] 14:16:28.543 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Removing daemon address: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]] 14:16:28.544 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 14:16:28.547 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 14:16:28.552 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 14:16:28.555 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Address removed from registry. Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt. 14:16:28.558 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Removing daemon address: [d5d33eaf-fbcb-4b3e-a841-9b8d9e3361d5 port:49774, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]] 14:16:28.558 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 14:16:28.561 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 14:16:28.563 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. ----- End of the daemon log ----- 项目是springboot,gradle环境变量和java环境变量都配置了,依赖库用的是公司的镜像库,网页都能直接打开。 这个问题我自己查了很久了,但是国内基本没人问过这个问题,仅有的几个提问,会打也是答非所问,国外倒是有几个回答,关防火墙啊,换依赖库啊,换本地gradle啊,然而并不能解决问题,公司里面好像也只有我的电脑有这个问题,难道是系统环境的锅? 问问各位大神有没有什么解决办法。
Line & Circle Maze 迷宫的问题
Problem Description A deranged algorithms professor has devised a terrible final exam: he throws his students into a strange maze formed entirely of linear and circular paths, with line segment endpoints and object intersections forming the junctions of the maze. The professor gives his students a map of the maze and a fixed amount of time to find the exit before he floods the maze with xerobiton particles, causing anyone still in the maze to be immediately inverted at the quantum level. Students who escape pass the course; those who don't are trapped forever in a parallel universe where the grass is blue and the sky is green. The entrance and the exit are always at a junction as defined above. Knowing that clever ACM programming students will always follow the shortest possible path between two junctions, he chooses the entrance and exit junctions so that the distance that they have to travel is as far as possible. That is, he examines all pairs of junctions that have a path between them, and selects a pair of junctions whose shortest path distance is the longest possible for the maze (which he rebuilds every semester, of course, as the motivation to cheat on this exam is very high). The joy he derives from quantumly inverting the majority of his students is marred by the tedium of computing the length of the longest of the shortest paths (he needs this to know to decide how much time to put on the clock), so he wants you to write a program to do it for him. He already has a program that generates the mazes, essentially just a random collection of line segments and circles. Your job is to take that collection of line segments and circles, determine the shortest paths between all the distinct pairs of junctions, and report the length of the longest one. The input to your program is the output of the program that generates his mazes. That program was written by another student, much like yourself, and it meets a few of the professor's specifications: 1) No endpoint of a line segment will lie on a circle; 2)No line segment will intersect a circle at a tangent; 3) If two circles intersect, they intersect at exactly two distinct points; 4)Every maze contains at least two junctions; that is, a minimum maze is either a single line segment, or two circles that intersect. There is, however, one bug in the program. (He would like to have it fixed, but unfortunately the student who wrote the code never gave him the source, and is now forever trapped in a parallel universe.) That bug is that the maze is not always entirely connected. There might be line segments or circles, or both, off by themselves that intersect nothing, or even little "submazes" composed of intersecting line segments and circles that as a whole are not connected to the rest of the maze. The professor insists that your solution account for this! The length that you report must be for a path between connected junctions! Example: 1.2. 3.4. Detail Description: Pictrue 1: Line segments only. The large dots are the junction pair whose shortest path is the longest possible. Pictrue 2: An example using circles only. Note that in this case there is also another pair of junctions with the same length longest possible shortest path. Pictrue 3: Disconnected components. Pictrue 4: Now the line segments are connected by a circle, allowing for a longer shortest path. Input An input test case is a collection of line segments and circles. A line segment is specified as "L X1 Y1 X2 Y2" where "L" is a literal character, and (X1,Y1) and (X2,Y2) are the line segment endpoints. A circle is specified by "C X Y R" where "C" is a literal character, (X,Y) is the center of the circle, and R is its radius. All input values are integers, and line segment and circle objects are entirely contained in the first quadrant within the box defined by (0,0) at the lower left and (100,100) at the upper right. Each test case will consist of from 1 to 20 objects, terminated by a line containing only a single asterisk. Following the final test case, a line containing only a single asterisk marks the end of the input. Output For each input maze, output "Case N: ", where N is the input case number starting at one (1), followed by the length, rounded to one decimal, of the longest possible shortest path between a pair of connected junctions. Sample Input L 10 0 50 40 L 10 4 0 50 0 L 10 1 0 60 1 0 L 0 30 50 30 * C 25 2 5 25 C 50 2 5 25 C 25 5 0 25 C 50 5 0 25 * L 0 0 80 80 L 80 1 00 100 80 * L 0 0 80 80 L 80 1 00 100 80 C 85 8 5 10 * * Sample Output Ca se 1: 68.3 Ca se 2: 78.5 Ca se 3: 113.1 Ca se 4: 140.8
monkeyrunner运行报错如下
181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]Traceback (most recent call last): File "E:\Appium\Tools\Android\Android-sdk\android-sdk-windows\tools\lib\Lib\encodings\__init__.py", line 31, in <module> import codecs File "E:\Appium\Tools\Android\Android-sdk\android-sdk-windows\tools\lib\Lib\codecs.py", line 16 except ImportError as why: ^ SyntaxError: mismatched input 'as' expecting COLON 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.parse(ParserFacade.java:184) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.compileSource(imp.java:326) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.createFromSource(imp.java:348) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.loadFromSource(imp.java:581) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.find_module(imp.java:478) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_next(imp.java:718) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_first(imp.java:748) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_module_level(imp.java:837) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.importName(imp.java:917) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ImportFunction.__call__(__builtin__.java:1220) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyObject.__call__(PyObject.java:357) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.__builtin__.__import__(__builtin__.java:1173) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.importOne(imp.java:936) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at encodings$py.f$0(E:\Appium\Tools\Android\Android-sdk\android-sdk-windows\tools\lib\Lib\encodings\__init__.py:152) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at encodings$py.call_function(E:\Appium\Tools\Android\Android-sdk\android-sdk-windows\tools\lib\Lib\encodings\__init__.py) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyTableCode.call(PyTableCode.java:165) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyCode.call(PyCode.java:18) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.createFromCode(imp.java:391) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.createFromPyClass(imp.java:209) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.loadFromSource(imp.java:572) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.find_module(imp.java:478) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_next(imp.java:718) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_first(imp.java:739) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.load(imp.java:631) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.codecs.import_encodings(codecs.java:109) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.codecs.registry_init(codecs.java:405) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.codecs.lookup(codecs.java:74) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.codecs.encode(codecs.java:192) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyString.str_encode(PyString.java:2458) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyString.encode(PyString.java:2449) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.GrammarActions.extractString(GrammarActions.java:472) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.GrammarActions.extractStrings(GrammarActions.java:428) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.atom(PythonParser.java:10896) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.power(PythonParser.java:10215) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.factor(PythonParser.java:10142) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.term(PythonParser.java:9696) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.arith_expr(PythonParser.java:9422) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.shift_expr(PythonParser.java:9149) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.and_expr(PythonParser.java:8982) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.xor_expr(PythonParser.java:8819) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.expr(PythonParser.java:8655) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.comparison(PythonParser.java:8201) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.not_test(PythonParser.java:8128) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.and_test(PythonParser.java:7920) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.or_test(PythonParser.java:7758) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.test(PythonParser.java:7618) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.testlist(PythonParser.java:12581) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.expr_stmt(PythonParser.java:3032) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2584) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2433) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.stmt(PythonParser.java:2347) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.PythonParser.file_input(PythonParser.java:641) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.antlr.BaseParser.parseModule(BaseParser.java:78) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.CompileMode$3.dispatch(CompileMode.java:22) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.parse(ParserFacade.java:152) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.parse(ParserFacade.java:182) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.compile_flags(Py.java:1731) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.__builtin__.execfile_flags(__builtin__.java:514) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77) 181031 16:29:52.035:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:189)
linux系统里不能用windows下的头文件吗?
我在oj系统上提交这样一个源程序: #include<iostream.h> using namespace std; int main() { int a,b,c; cin>>a>>b; if((a>=1)&&(a<=100)&&(b>=1)&&(b<=100)) { c=a+b; cout<<c<<std::endl; } return 0; } 提示这样的错误: Main.c:1:21: fatal error: iostream.h: 没有那个文件或目录 #include<iostream.h> ^ compilation terminated. 辅助解释: Main.c:1:21: fatal error: iostream.h: 没有那个文件或目录:服务器为Linux系统,不能使用windows下特有的非标准头文件。 请问有人知道这个怎么解决吗?谢谢
利用sqoop把数据从Oracle导出到hive报错
![图片说明](https://img-ask.csdn.net/upload/201504/16/1429180711_592161.png) bash-4.1$ sqoop import --connect jdbc:oracle:thin:@192.168.1.169:1521:orcl --username HADOOP --password hadoop2015 --table CALC_UPAY_DATE_HADOOP_HDFS --split-by UPAYID --hive-import Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. find: paths must precede expression: ant-eclipse-1.0-jvm1.2.jar Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] 15/04/16 03:28:13 INFO sqoop.Sqoop: Running Sqoop version: 1.4.4-cdh5.0.2 15/04/16 03:28:13 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 15/04/16 03:28:13 INFO tool.BaseSqoopTool: Using Hive-specific delimiters for output. You can override 15/04/16 03:28:13 INFO tool.BaseSqoopTool: delimiters with --fields-terminated-by, etc. 15/04/16 03:28:13 INFO manager.SqlManager: Using default fetchSize of 1000 15/04/16 03:28:13 INFO tool.CodeGenTool: Beginning code generation 15/04/16 03:28:13 INFO manager.OracleManager: Time zone has been set to GMT 15/04/16 03:28:13 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM CALC_UPAY_DATE_HADOOP_HDFS t WHERE 1=0 15/04/16 03:28:14 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/lib/hadoop-mapreduce Note: /tmp/sqoop-hdfs/compile/e9286bf0e7d796ba396d3155210012b0/CALC_UPAY_DATE_HADOOP_HDFS.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 15/04/16 03:28:15 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-hdfs/compile/e9286bf0e7d796ba396d3155210012b0/CALC_UPAY_DATE_HADOOP_HDFS.jar 15/04/16 03:28:15 INFO mapreduce.ImportJobBase: Beginning import of CALC_UPAY_DATE_HADOOP_HDFS 15/04/16 03:28:15 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar 15/04/16 03:28:15 INFO manager.OracleManager: Time zone has been set to GMT 15/04/16 03:28:16 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps 15/04/16 03:28:16 INFO client.RMProxy: Connecting to ResourceManager at hadoop01/192.168.1.201:8032 15/04/16 03:28:18 INFO db.DBInputFormat: Using read commited transaction isolation 15/04/16 03:28:18 INFO db.DataDrivenDBInputFormat: BoundingValsQuery: SELECT MIN(UPAYID), MAX(UPAYID) FROM CALC_UPAY_DATE_HADOOP_HDFS 15/04/16 03:28:19 INFO mapreduce.JobSubmitter: number of splits:4 15/04/16 03:28:20 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1429145594985_0020 15/04/16 03:28:20 INFO impl.YarnClientImpl: Submitted application application_1429145594985_0020 15/04/16 03:28:20 INFO mapreduce.Job: The url to track the job: http://hadoop01:8088/proxy/application_1429145594985_0020/ 15/04/16 03:28:20 INFO mapreduce.Job: Running job: job_1429145594985_0020 15/04/16 03:28:31 INFO mapreduce.Job: Job job_1429145594985_0020 running in uber mode : false 15/04/16 03:28:31 INFO mapreduce.Job: map 0% reduce 0% 15/04/16 03:28:59 INFO mapreduce.Job: Task Id : attempt_1429145594985_0020_m_000000_0, Status : FAILED Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z 15/04/16 03:29:00 INFO mapreduce.Job: Task Id : attempt_1429145594985_0020_m_000002_0, Status : FAILED Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z 15/04/16 03:29:01 INFO mapreduce.Job: Task Id : attempt_1429145594985_0020_m_000001_0, Status : FAILED Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z 我用sqoop把数据从hive导出到oracle一切正常
关于python安装pymssql报错,求大神指点,在ubuntu14.04下
报错内容: ``` (pyenvdata)lin@lin-ThinkPad:~$ pip install pymssql Downloading/unpacking pymssql Downloading pymssql-2.1.1.tar.gz (2.4MB): 2.4MB downloaded Running setup.py (path:/home/lin/pyenvdata/build/pymssql/setup.py) egg_info for package pymssql setup.py: platform.system() => 'Linux' setup.py: platform.architecture() => ('64bit', 'ELF') setup.py: platform.linux_distribution() => ('Ubuntu', '14.04', 'trusty') setup.py: platform.libc_ver() => ('glibc', '2.4') setup.py: Not using bundled FreeTDS setup.py: include_dirs = ['/usr/local/include'] setup.py: library_dirs = ['/usr/local/lib'] Installed /home/lin/pyenvdata/build/pymssql/setuptools_git-1.1-py2.7.egg Installing collected packages: pymssql Running setup.py install for pymssql setup.py: platform.system() => 'Linux' setup.py: platform.architecture() => ('64bit', 'ELF') setup.py: platform.linux_distribution() => ('Ubuntu', '14.04', 'trusty') setup.py: platform.libc_ver() => ('glibc', '2.4') setup.py: Not using bundled FreeTDS setup.py: include_dirs = ['/usr/local/include'] setup.py: library_dirs = ['/usr/local/lib'] building '_mssql' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.7 -c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -DMSDBLIB _mssql.c:314:22: fatal error: sqlfront.h: 没有那个文件或目录 #include "sqlfront.h" ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Complete output from command /home/lin/pyenvdata/bin/python -c "import setuptools, tokenize;__file__='/home/lin/pyenvdata/build/pymssql/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-c75p_h-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/lin/pyenvdata/include/site/python2.7: setup.py: platform.system() => 'Linux' setup.py: platform.architecture() => ('64bit', 'ELF') setup.py: platform.linux_distribution() => ('Ubuntu', '14.04', 'trusty') setup.py: platform.libc_ver() => ('glibc', '2.4') setup.py: Not using bundled FreeTDS setup.py: include_dirs = ['/usr/local/include'] setup.py: library_dirs = ['/usr/local/lib'] running install running build running build_ext building '_mssql' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.7 -c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -DMSDBLIB _mssql.c:314:22: fatal error: sqlfront.h: 没有那个文件或目录 #include "sqlfront.h" ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Cleaning up... Command /home/lin/pyenvdata/bin/python -c "import setuptools, tokenize;__file__='/home/lin/pyenvdata/build/pymssql/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-c75p_h-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/lin/pyenvdata/include/site/python2.7 failed with error code 1 in /home/lin/pyenvdata/build/pymssql Traceback (most recent call last): File "/home/lin/pyenvdata/bin/pip", line 11, in <module> sys.exit(main()) File "/home/lin/pyenvdata/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main return command.main(cmd_args) File "/home/lin/pyenvdata/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 46: ordinal not in range(128) ```
Oracle sqlldr 导入数据
有表 create table day_gnl_dtl( code char(9),time_stamp timestamp); 需要导入的文本文件day_gnl_dtl.txt 内容为这样的格式: 222022133|2014-04-03 15:59:30.222 222032133|2014-02-03 15:59:30.222 922032233|2014-11-03 15:59:30.222 122312333|2014-09-03 15:59:30.222 有sqlldr文件day_gnl_dtl.txt内容如下: Load data infile "E:/day_gnl_dtl.txt" into table day_gnl_dtl Append fields terminated by "|" ( code, time_stamp timestamp 'YYYY-MM-DD HH24:MI:SS' ); 报 记录 1: 被拒绝 - 表 MST_PERS 的列 TIMESTAMP 出现错误。 ORA-01830: 日期格式图片在转换整个输入字符串之前结束
c# winform 应用程序运行时会突然消失
``` ​错提示如下: Application: TCPServer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef) at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32) at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext) at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext) at System.Windows.Forms.Application.Run(System.Windows.Forms.Form) at TCPServer.Program.Main() 看不明白,错误提示的意思,请牛人帮看下,谢谢 ```
有谁遇到这样的错误:squid dead but subsys locked
代理服务器用的squid,这几天总是会异常死掉,通过service squid status ,报 squid dead but subsys locked 通过查看cache.log CPU Usage: 383.331 seconds = 165.547 user + 217.784 sys Maximum Resident Size: 489968 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): total space in arena: 59488 KB Ordinary blocks: 50231 KB 2019 blks Small blocks: 0 KB 8 blks Holding blocks: 213100 KB 12 blks Free Small blocks: 0 KB Free Ordinary blocks: 9256 KB Total in use: 263331 KB 443% Total free: 9256 KB 16% 查看 squid.out : FATAL: Bungled squid.conf line 98: http_access allow srcs_proxy_2 !black2 Squid Cache (Version 3.1.10): Terminated abnormally. CPU Usage: 0.023 seconds = 0.012 user + 0.011 sys Maximum Resident Size: 28096 KB Page faults with physical i/o: 0 squid: ERROR: No running copy
maven install时出错望好心人解决一下。小弟先谢谢了
------------------------------------------------------- T E S T S ------------------------------------------------------- Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0\jre\bin\java" -jar E:\工作\我的代码\workspaceCollab2\AAA\target\surefire\surefirebooter4742801322268775008.jar E:\工作\我的代码\workspaceCollab2\AAA\target\surefire\surefire6598622082065573176tmp E:\工作\我的代码\workspaceCollab2\AAA\target\surefire\surefire_07796347708207276805tmp" ����: ���Դ��ļ�E:\?�����\???��??\workspaceCollab2\AAA\target\surefire\surefirebooter4742801322268775008.jʱ����������� Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.642 s [INFO] Finished at: 2016-01-20T16:45:04+08:00 [INFO] Final Memory: 15M/38M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project eosgi-report: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project eosgi-report: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:46) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 more Caused by: java.lang.RuntimeException: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.close(ForkClient.java:257) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:301) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:116) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:740) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:682) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:648) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) ... 21 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Hyperspace 超空间的问题
Problem Description The great Mr.Smith has invented a hyperspace particle generator. The device is very powerful. The device can generate a hyperspace. In the hyperspace, particle may appear and disappear randomly. At the same time a great amount of energy was generated. However, the device is in test phase, often in a unstable state. Mr.Smith worried that it may cause an explosion while testing it. The energy of the device is related to the maximum manhattan distance among particle. Particles may appear and disappear any time. Mr.Smith wants to know the maxmium manhattan distance among particles when particle appears or disappears. Input The input contains several test cases, terminated by EOF. In each case: In the first line, there are two integer q(number of particle appear and disappear event, ≤60000) and k(dimensions of the hyperspace that the hyperspace the device generated, ≤5). Then follows q lines. In each line, the first integer ‘od’ represents the event: od = 0 means this is an appear event. Then follows k integer(with absolute value less then 4 × 107). od = 1 means this is an disappear event. Follows a integer p represents the disappeared particle appeared in the pth event. Output Each test case should contains q lines. Each line contains a integer represents the maximum manhattan distance among paticles. Sample Input 10 2 0 208 403 0 371 -180 1 2 0 1069 -192 0 418 -525 1 5 1 1 0 2754 635 0 -2491 961 0 2954 -2516 Sample Output 0 746 0 1456 1456 1456 0 2512 5571 8922
CD of Sequence 序列问题
Problem Description Alice is playing a game with Bob. Alice shows N integers a1, a2, …, aN, and M, K. She says each integers 1 ≤ ai ≤ M. And now Alice wants to ask for each d = 1 to M, how many different sequences b1, b2, …, bN. which satisfies : 1. For each i = 1…N, 1 ≤ b[i] ≤ M 2. gcd(b1, b2, …, bN) = d 3. There will be exactly K position i that ai != bi (1 ≤ i ≤ n) Alice thinks that the answer will be too large. In order not to annoy Bob, she only wants to know the answer modulo 1000000007.Bob can not solve the problem. Now he asks you for HELP! Notes: gcd(x1, x2, …, xn) is the greatest common divisor of x1, x2, …, xn Input The input contains several test cases, terminated by EOF. The first line of each test contains three integers N, M, K. (1 ≤ N, M ≤ 300000, 1 ≤ K ≤ N) The second line contains N integers: a1, a2, ..., an (1 ≤ ai ≤ M) which is original sequence. Output For each test contains 1 lines : The line contains M integer, the i-th integer is the answer shows above when d is the i-th number. Sample Input 3 3 3 3 3 3 3 5 3 1 2 3 Sample Output 7 1 0 59 3 0 1 1
Sqoop将数据从hive导入mysql报错,各位帮我看看
这是运行的命令: liuyanbing@ubuntu:/opt/sqoop$ bin/sqoop export --connect jdbc:mysql://localhost:3306/dbtaobao --username root --password root --table user_log --export-dir '/user/hive/warehouse/dbtaobao.db/inner_user_log' --fields-terminated-by ','; 报错内容: Warning: /opt/sqoop/../hcatalog does not exist! HCatalog jobs will fail. Please set $HCAT_HOME to the root of your HCatalog installation. Warning: /opt/sqoop/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. Warning: /opt/sqoop/../zookeeper does not exist! Accumulo imports will fail. Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation. 2019-06-11 16:05:04,541 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6 2019-06-11 16:05:04,573 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 2019-06-11 16:05:04,678 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset. 2019-06-11 16:05:04,678 INFO tool.CodeGenTool: Beginning code generation Tue Jun 11 16:05:04 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 2019-06-11 16:05:05,241 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `user_log` AS t LIMIT 1 2019-06-11 16:05:05,379 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `user_log` AS t LIMIT 1 2019-06-11 16:05:05,392 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /bigdata/hadoop-3.1.1 Note: /tmp/sqoop-liuyanbing/compile/990c7e516f6811ff0f7c264686938932/user_log.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2019-06-11 16:05:09,951 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-liuyanbing/compile/990c7e516f6811ff0f7c264686938932/user_log.jar 2019-06-11 16:05:09,960 INFO mapreduce.ExportJobBase: Beginning export of user_log 2019-06-11 16:05:09,960 INFO Configuration.deprecation: mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address 2019-06-11 16:05:10,093 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2019-06-11 16:05:10,131 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar 2019-06-11 16:05:11,220 INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative 2019-06-11 16:05:11,224 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative 2019-06-11 16:05:11,225 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps 2019-06-11 16:05:11,399 INFO client.RMProxy: Connecting to ResourceManager at localhost/127.0.0.1:8032 2019-06-11 16:05:12,478 INFO mapreduce.JobResourceUploader: Disabling Erasure Coding for path: /tmp/hadoop-yarn/staging/liuyanbing/.staging/job_1560238973821_0003 2019-06-11 16:05:15,272 WARN hdfs.DataStreamer: Caught exception java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Thread.join(Thread.java:1252) at java.lang.Thread.join(Thread.java:1326) at org.apache.hadoop.hdfs.DataStreamer.closeResponder(DataStreamer.java:986) at org.apache.hadoop.hdfs.DataStreamer.endBlock(DataStreamer.java:640) at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:810) 2019-06-11 16:05:18,771 INFO input.FileInputFormat: Total input files to process : 1 2019-06-11 16:05:18,780 INFO input.FileInputFormat: Total input files to process : 1 2019-06-11 16:05:19,285 INFO mapreduce.JobSubmitter: number of splits:4 2019-06-11 16:05:19,352 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative 2019-06-11 16:05:19,353 INFO Configuration.deprecation: yarn.resourcemanager.system-metrics-publisher.enabled is deprecated. Instead, use yarn.system-metrics-publisher.enabled 2019-06-11 16:05:19,472 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1560238973821_0003 2019-06-11 16:05:19,473 INFO mapreduce.JobSubmitter: Executing with tokens: [] 2019-06-11 16:05:19,959 INFO conf.Configuration: resource-types.xml not found 2019-06-11 16:05:19,959 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 2019-06-11 16:05:20,049 INFO impl.YarnClientImpl: Submitted application application_1560238973821_0003 2019-06-11 16:05:20,105 INFO mapreduce.Job: The url to track the job: http://ubuntu:8088/proxy/application_1560238973821_0003/ 2019-06-11 16:05:20,106 INFO mapreduce.Job: Running job: job_1560238973821_0003 2019-06-11 16:05:29,273 INFO mapreduce.Job: Job job_1560238973821_0003 running in uber mode : false 2019-06-11 16:05:29,286 INFO mapreduce.Job: map 0% reduce 0% 2019-06-11 16:05:42,450 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000002_0, Status : FAILED [2019-06-11 16:05:39.558]Container [pid=22666,containerID=container_1560238973821_0003_01_000004] is running 318323200B beyond the 'VIRTUAL' memory limit. Current usage: 125.2 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000004 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 22910 22666 22666 22666 (java) 302 45 2558558208 31405 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000004/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000004 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_0 4 |- 22666 22656 22666 22666 (bash) 0 0 14622720 634 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000004/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000004 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_0 4 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000004/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000004/stderr [2019-06-11 16:05:40.618]Container killed on request. Exit code is 143 [2019-06-11 16:05:40.619]Container exited with a non-zero exit code 143. 2019-06-11 16:05:42,479 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000001_0, Status : FAILED [2019-06-11 16:05:39.558]Container [pid=22651,containerID=container_1560238973821_0003_01_000003] is running 320690688B beyond the 'VIRTUAL' memory limit. Current usage: 127.5 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000003 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 22955 22651 22651 22651 (java) 296 49 2560925696 32025 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000003/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000003 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_0 3 |- 22651 22649 22651 22651 (bash) 0 0 14622720 627 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000003/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000003 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_0 3 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000003/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000003/stderr [2019-06-11 16:05:40.618]Container killed on request. Exit code is 143 [2019-06-11 16:05:40.621]Container exited with a non-zero exit code 143. 2019-06-11 16:05:42,480 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000003_0, Status : FAILED [2019-06-11 16:05:38.617]Container [pid=22749,containerID=container_1560238973821_0003_01_000005] is running 320125440B beyond the 'VIRTUAL' memory limit. Current usage: 126.4 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000005 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 22987 22749 22749 22749 (java) 324 37 2560360448 31709 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000005/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000005 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_0 5 |- 22749 22720 22749 22749 (bash) 0 1 14622720 640 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000005/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000005 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_0 5 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000005/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000005/stderr [2019-06-11 16:05:40.620]Container killed on request. Exit code is 143 [2019-06-11 16:05:40.622]Container exited with a non-zero exit code 143. 2019-06-11 16:05:42,482 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000000_0, Status : FAILED [2019-06-11 16:05:39.558]Container [pid=22675,containerID=container_1560238973821_0003_01_000002] is running 319543808B beyond the 'VIRTUAL' memory limit. Current usage: 125.4 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000002 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 22937 22675 22675 22675 (java) 316 38 2559778816 31497 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000002/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000002 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_0 2 |- 22675 22670 22675 22675 (bash) 0 0 14622720 612 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000002/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000002 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_0 2 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000002/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000002/stderr [2019-06-11 16:05:40.619]Container killed on request. Exit code is 143 [2019-06-11 16:05:40.622]Container exited with a non-zero exit code 143. 2019-06-11 16:05:52,546 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000002_1, Status : FAILED [2019-06-11 16:05:50.910]Container [pid=23116,containerID=container_1560238973821_0003_01_000006] is running 282286592B beyond the 'VIRTUAL' memory limit. Current usage: 68.6 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000006 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23194 23116 23116 23116 (java) 85 29 2522521600 16852 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000006/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000006 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_1 6 |- 23116 23115 23116 23116 (bash) 0 1 14622720 710 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000006/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000006 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_1 6 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000006/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000006/stderr [2019-06-11 16:05:50.970]Container killed on request. Exit code is 143 [2019-06-11 16:05:51.012]Container exited with a non-zero exit code 143. 2019-06-11 16:05:55,561 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000000_1, Status : FAILED [2019-06-11 16:05:54.193]Container [pid=23396,containerID=container_1560238973821_0003_01_000009] is running 313866752B beyond the 'VIRTUAL' memory limit. Current usage: 111.1 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000009 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23396 23394 23396 23396 (bash) 0 1 14622720 710 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000009/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000009 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_1 9 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000009/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000009/stderr |- 23473 23396 23396 23396 (java) 245 40 2554101760 27743 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000009/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000009 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_1 9 [2019-06-11 16:05:54.228]Container killed on request. Exit code is 143 [2019-06-11 16:05:54.263]Container exited with a non-zero exit code 143. 2019-06-11 16:05:55,563 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000003_1, Status : FAILED [2019-06-11 16:05:54.332]Container [pid=23304,containerID=container_1560238973821_0003_01_000008] is running 314042880B beyond the 'VIRTUAL' memory limit. Current usage: 113.8 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000008 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23381 23304 23304 23304 (java) 265 51 2554277888 28423 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000008/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000008 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_1 8 |- 23304 23302 23304 23304 (bash) 0 1 14622720 720 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000008/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000008 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_1 8 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000008/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000008/stderr [2019-06-11 16:05:54.353]Container killed on request. Exit code is 143 [2019-06-11 16:05:54.381]Container exited with a non-zero exit code 143. 2019-06-11 16:05:55,565 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000001_1, Status : FAILED [2019-06-11 16:05:54.408]Container [pid=23200,containerID=container_1560238973821_0003_01_000007] is running 314497536B beyond the 'VIRTUAL' memory limit. Current usage: 115.5 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000007 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23200 23198 23200 23200 (bash) 0 1 14622720 711 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000007/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000007 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_1 7 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000007/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000007/stderr |- 23277 23200 23200 23200 (java) 257 60 2554732544 28852 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000007/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000007 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_1 7 [2019-06-11 16:05:54.463]Container killed on request. Exit code is 143 [2019-06-11 16:05:54.482]Container exited with a non-zero exit code 143. 2019-06-11 16:06:01,619 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000002_2, Status : FAILED [2019-06-11 16:06:00.584]Container [pid=23515,containerID=container_1560238973821_0003_01_000011] is running 337451520B beyond the 'VIRTUAL' memory limit. Current usage: 203.4 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000011 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23515 23513 23515 23515 (bash) 0 1 14622720 712 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000011/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000011 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_2 11 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000011/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000011/stderr |- 23592 23515 23515 23515 (java) 456 89 2577686528 51352 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000011/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000011 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000002_2 11 [2019-06-11 16:06:00.602]Container killed on request. Exit code is 143 [2019-06-11 16:06:00.659]Container exited with a non-zero exit code 143. 2019-06-11 16:06:05,651 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000000_2, Status : FAILED [2019-06-11 16:06:03.816]Container [pid=23651,containerID=container_1560238973821_0003_01_000012] is running 331475456B beyond the 'VIRTUAL' memory limit. Current usage: 173.7 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000012 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23728 23651 23651 23651 (java) 418 39 2571710464 43768 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000012/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000012 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_2 12 |- 23651 23649 23651 23651 (bash) 0 1 14622720 707 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000012/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000012 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000000_2 12 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000012/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000012/stderr [2019-06-11 16:06:03.981]Container killed on request. Exit code is 143 [2019-06-11 16:06:03.986]Container exited with a non-zero exit code 143. 2019-06-11 16:06:08,677 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000001_2, Status : FAILED [2019-06-11 16:06:07.127]Container [pid=23848,containerID=container_1560238973821_0003_01_000014] is running 335940096B beyond the 'VIRTUAL' memory limit. Current usage: 198.2 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000014 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23848 23847 23848 23848 (bash) 0 1 14622720 714 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000014/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000014 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_2 14 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000014/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000014/stderr |- 23926 23848 23848 23848 (java) 408 59 2576175104 50032 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000014/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000014 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000001_2 14 [2019-06-11 16:06:07.186]Container killed on request. Exit code is 143 [2019-06-11 16:06:07.201]Container exited with a non-zero exit code 143. 2019-06-11 16:06:08,678 INFO mapreduce.Job: Task Id : attempt_1560238973821_0003_m_000003_2, Status : FAILED [2019-06-11 16:06:07.227]Container [pid=23751,containerID=container_1560238973821_0003_01_000013] is running 337357312B beyond the 'VIRTUAL' memory limit. Current usage: 192.7 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_1560238973821_0003_01_000013 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 23829 23751 23751 23751 (java) 463 52 2577592320 48632 /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000013/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000013 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_2 13 |- 23751 23749 23751 23751 (bash) 0 1 14622720 706 /bin/bash -c /opt/java/jdk1.8.0_181/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx820m -Djava.io.tmpdir=/bigdata/hadoop-3.1.1/tmp/nm-local-dir/usercache/liuyanbing/appcache/application_1560238973821_0003/container_1560238973821_0003_01_000013/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000013 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 127.0.1.1 43655 attempt_1560238973821_0003_m_000003_2 13 1>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000013/stdout 2>/bigdata/hadoop-3.1.1/logs/userlogs/application_1560238973821_0003/container_1560238973821_0003_01_000013/stderr [2019-06-11 16:06:07.280]Container killed on request. Exit code is 143 [2019-06-11 16:06:07.360]Container exited with a non-zero exit code 143. 2019-06-11 16:06:12,703 INFO mapreduce.Job: map 100% reduce 0% 2019-06-11 16:06:12,711 INFO mapreduce.Job: Job job_1560238973821_0003 failed with state FAILED due to: Task failed task_1560238973821_0003_m_000002 Job failed as tasks failed. failedMaps:1 failedReduces:0 killedMaps:0 killedReduces: 0 2019-06-11 16:06:12,979 INFO mapreduce.Job: Counters: 13 Job Counters Failed map tasks=13 Killed map tasks=3 Launched map tasks=16 Other local map tasks=12 Data-local map tasks=4 Total time spent by all maps in occupied slots (ms)=124936 Total time spent by all reduces in occupied slots (ms)=0 Total time spent by all map tasks (ms)=124936 Total vcore-milliseconds taken by all map tasks=124936 Total megabyte-milliseconds taken by all map tasks=127934464 Map-Reduce Framework CPU time spent (ms)=0 Physical memory (bytes) snapshot=0 Virtual memory (bytes) snapshot=0 2019-06-11 16:06:12,986 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead 2019-06-11 16:06:12,990 INFO mapreduce.ExportJobBase: Transferred 0 bytes in 61.7517 seconds (0 bytes/sec) 2019-06-11 16:06:12,999 INFO mapreduce.ExportJobBase: Exported 0 records. 2019-06-11 16:06:12,999 ERROR tool.ExportTool: Error during export: Export job failed! 新手找不到错误 求大神班帮我看看
gcc 的编译问题 求大佬解答
使用gcc 编译.c文件时出现: fatal error: rootshell.h: 没有那个文件或目录 430 | #include "rootshell.h" | ^~~~~~~~~~~~~ compilation terminated. 求大神解答 该怎么办 ![图片说明](https://img-ask.csdn.net/upload/202001/03/1578028924_720407.png)
关于Android的错误:Permission Denial: 。。。.READ_EXTERNAL_STORAGE, or grantUriPermission(
这是错误代码 ,在虚拟机运行时崩溃, E/AndroidRuntime: FATAL EXCEPTION: main Process: com.add.mp3list, PID: 7193 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.add.mp3list/com.add.mp3list.MainActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=7193, uid=10090 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=7193, uid=10090 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() at android.os.Parcel.readException(Parcel.java:1942) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) at android.content.ContentProviderProxy.query(ContentProviderNative.java:418) at android.content.ContentResolver.query(ContentResolver.java:754) at android.content.ContentResolver.query(ContentResolver.java:704) at android.content.ContentResolver.query(ContentResolver.java:662) at com.add.mp3list.MusicList.getMusicData(MusicList.java:26) at com.add.mp3list.MainActivity.onCreate(MainActivity.java:21) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)  at android.app.ActivityThread.-wrap11(Unknown Source:0)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)  at android.os.Handler.dispatchMessage(Handler.java:105)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6541)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)  Application terminated.
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
死磕YOLO系列,YOLOv1 的大脑、躯干和手脚
YOLO 是我非常喜欢的目标检测算法,堪称工业级的目标检测,能够达到实时的要求,它帮我解决了许多实际问题。 这就是 YOLO 的目标检测效果。它定位了图像中物体的位置,当然,也能预测物体的类别。 之前我有写博文介绍过它,但是每次重新读它的论文,我都有新的收获,为此我准备写一个系列的文章来详尽分析它。这是第一篇,从它的起始 YOLOv1 讲起。 YOLOv1 的论文地址:https://www.c...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
20行Python代码爬取王者荣耀全英雄皮肤
引言 王者荣耀大家都玩过吧,没玩过的也应该听说过,作为时下最火的手机MOBA游戏,咳咳,好像跑题了。我们今天的重点是爬取王者荣耀所有英雄的所有皮肤,而且仅仅使用20行Python代码即可完成。 准备工作 爬取皮肤本身并不难,难点在于分析,我们首先得得到皮肤图片的url地址,话不多说,我们马上来到王者荣耀的官网: 我们点击英雄资料,然后随意地选择一位英雄,接着F12打开调试台,找到英雄原皮肤的图片...
简明易理解的@SpringBootApplication注解源码解析(包含面试提问)
欢迎关注文章系列 ,关注我 《提升能力,涨薪可待》 《面试知识,工作可待》 《实战演练,拒绝996》 欢迎关注我博客,原创技术文章第一时间推出 也欢迎关注公 众 号【Ccww笔记】,同时推出 如果此文对你有帮助、喜欢的话,那就点个赞呗,点个关注呗! 《提升能力,涨薪可待篇》- @SpringBootApplication注解源码解析 一、@SpringBootApplication 的作用是什...
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给袈...
Python语言高频重点汇总
Python语言高频重点汇总 GitHub面试宝典仓库 回到首页 目录: Python语言高频重点汇总 目录: 1. 函数-传参 2. 元类 3. @staticmethod和@classmethod两个装饰器 4. 类属性和实例属性 5. Python的自省 6. 列表、集合、字典推导式 7. Python中单下划线和双下划线 8. 格式化字符串中的%和format 9. 迭代器和生成器 10...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
ES6基础-ES6的扩展
进行对字符串扩展,正则扩展,数值扩展,函数扩展,对象扩展,数组扩展。 开发环境准备: 编辑器(VS Code, Atom,Sublime)或者IDE(Webstorm) 浏览器最新的Chrome 字符串的扩展: 模板字符串,部分新的方法,新的unicode表示和遍历方法: 部分新的字符串方法 padStart,padEnd,repeat,startsWith,endsWith,includes 字...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
web前端javascript+jquery知识点总结
Javascript javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ,语法同java类似,是一种解释性语言,边执行边解释。 JavaScript的组成: ECMAScipt 用于描述: 语法,变量和数据类型,运算符,逻辑控制语句,关键字保留字,对象。 浏览器对象模型(Br
Qt实践录:开篇
本系列文章介绍笔者的Qt实践之路。
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
一条链接即可让黑客跟踪你的位置! | Seeker工具使用
搬运自:冰崖的部落阁(icecliffsnet) 严正声明:本文仅限于技术讨论,严禁用于其他用途。 请遵守相对应法律规则,禁止用作违法途径,出事后果自负! 上次写的防社工文章里边提到的gps定位信息(如何防止自己被社工或人肉) 除了主动收集他人位置信息以外,我们还可以进行被动收集 (没有技术含量) Seeker作为一款高精度地理位置跟踪工具,同时也是社交工程学(社会工程学)爱好者...
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c#如何定义数组列表 c#倒序读取txt文件 java代码生成c# c# tcp发送数据 c#解决时间格式带星期 c#类似hashmap c#设置istbox的值 c#获取多线程返回值 c# 包含数字 枚举 c# timespan
立即提问