paramiko 连接 windows freesshd服务器,出现 banner“uft-8”can't decode错误???

paramiko 连接 windows freesshd服务器,出现 banner“uft-8”can't decode错误???

import paramiko

t = paramiko.Transport((",,,",23))
t.connect(username="...",password="...") 这出错,,,

图片说明

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
出现can't locate
Can't locate ./environment.pl in @INC (@INC contains: /usr/rcpark/pub/perl5/lib/sun4-solaris/5.00404 /usr/rcpark/pub/perl5/lib /usr/rcpark/pub/perl5/lib/site_perl/sun4-solaris /usr/rcpark/pub/perl5/lib/site_perl .) at /opt/public_html/cgi-bin/common.pl line 17.rnrnrn请问为什么会出现以上错误?rnrn附:文件common.pl的第17行是:rnrequire './environment.pl';rnrnrequire './environment.pl';、require "./environment.pl";、require 'environment.pl'、require '/opt/public_html/cgi-bin/environment.pl';有区别么?或者是其它错误?谢谢。rnrn另外:在perl中如果一个a.pl require 了environment.pl文件,b.cgi同时require了a.pl和environment.pl是否有错?就像C语言里类似重复包含头文件会报错那样.rnrnrn
'utf8' codec can't decode byte 0xbd
问题描述:nRobotFramework ride 导入用户自定义库时报错nn报错日志:n20160809 10:28:52.264 [WARN]: Importing test library "C:/Python27/Lib/site-packages/CustomLibrary/runbat.py" failednnTraceback (most recent call last):nImporting test library 'C:\Python27\Lib\site-packages\CustomLibrary\runbat.py' failed: SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xbd in position 0: invalid start byte (runbat.py, line 16)nTraceback (most recent call last):n File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 143, in _importn return __import__(name, fromlist=fromlist)n n用户自定义的库文件源码:n如图![图片说明](https://img-ask.csdn.net/upload/201608/09/1470714706_278512.png)nn这个是网上的一个教程,我复制粘贴搞不定了,求带飞。
求救:出现can't access url 错误!
环境:iis6.0+resin3.0.8+accessrn如过有遇到这个情况的,请帮忙一下啊,谢谢啦!
连接mysql数据库出现'can't read dir of。。。的错误
我昨天在Windows里用mysql -front连到Mysql服务器上建立了一个数据库sitedata,今天我用mysql-front连上去的话出现这样的问题rn'Access violation at address 10007434 in module 'libmySQL.dll'.Read of address 00000000'rn我在服务器上运行以下的命令。rnmysql>show databases 能看到sitedata是存在的。rn然后rnmysql>use sitedatarn'can't read dir of './sitedata/',errorcode 13.rndatabase changedrnrn各位大哥来帮我看看这是什么原因导致的?rn
使用paramiko如何连接服务器?
本文和大家分享的是python开发中使用paramiko连接服务器的方法和步骤,希望通过本文的,对大家学习和使用paramiko有所帮助。   ssh连接步骤   1.ssh server建立server public key,对应文件/etc/ssh/ssh_host_*文件   首先是有一个ssh的服务器,它建立了一些公匙,然后放在本地的文件中。   2.ssh client发...
通过freeSSHD创建 window服务器ftp连接
需求:需要将ECS windows服务器 实例中备份的数据存在另一个路径,故在ecs服务器上创建共享文件夹,以便建网络映射,经测试发现windows 实例本机内网IP可以访问共享,外网IP不行,外网报0x80070035,按此错误原因调整服务器环境,未解决,结果在网上查资料才发现找不到类似的文章 尝试 在服务器上安装freeSSHd,使用xftp连接 准备工作,这里综合在网上的搜索结果,服务端...
Python3解决问题:读取文件时,出现乱码或者“UnicodeDecodeError 'gbk' codec can't decode” 错误
使用的电脑系统:Windows 10 64位 使用的开发集成环境:Anaconda3 使用的Python的版本:python 3.5.2 出现的错误 读取文件时,出现乱码或者UnicodeDecodeError: 'gbk' codec can't decode byte 0xXX in position XX: incomplete multibyte sequence 错误 出现错误的...
Windows SSH服务器软件freeSSHd
windows系统下最好用的SSH服务器软件
在Windows下配置 FreeSSHd 的方法
        这几天心血来潮,想要在Windows上配置内网穿透,故而想到了ssh服务,在这篇文章中使用到的是FreeSSHd软件,接下来会介绍软件的使用方法及常见问题解决。         1. 软件下载 http://www.freesshd.com/?ctt=download         2.环境配置         首先我们要开启SSH服务,一般来说是开启不了的,因为 F...
【急】连接服务器出现错误
[code=C/C++] RSocketServ socksev;rn [color=#FF0000]TInt res=socksev.Connect();//success[/color]rn if(res!=KErrNone)rn rn console->Write(KErr);rn socksev.Close();rn rn console->Write(KSuccess);rn rn RSocket sock;[color=#FF0000]rn res=sock.Open(socksev,KAfInet,KSockStream,KProtocolInetTcp);//success[/color]rn if(res!=KErrNone)rn rn console->Write(KErr);rn sock.Close();rn socksev.Close();rn rn console->Write(KSuccess);rn rn TInetAddr serverAddr;rn// res=serverAddr.Input(_L("220.181.6.19"));[color=#FF0000]rn res=serverAddr.Input(_L("192.168.1.171"));//success[/color]rn if(res!=KErrNone)rn rn console->Write(KErr);rn sock.Close();rn socksev.Close();rn rn console->Write(KSuccess);rn serverAddr.SetPort(5005);rn serverAddr.SetFamily(KAfInet);rn rn TRequestStatus status;rn sock.Connect(serverAddr,status);[color=#FF0000]rn User::WaitForRequest(status);//Failed[/color][color=#FF0000]rn if(status!=KErrNone)//success[/color]rn rn console->Write(KErr);rn sock.Close();rn socksev.Close();rn rn console->Write(KSuccess);rnrn //rn // add your program code here, example code belowrn rn //rn console->Getch();rn console->Write(_L("Hello, world!\n"));rn rn[/code]rn请教一下各位大虾,这是我测试连接套接字的程序,运行的结果是rnSuccess!rnSuccess!rnSuccess!rnFailed!rnSuccess!rnrn192.168.1.171是我本机的局域网地址rnrnUser::WaitForRequest(status);自动打印出Failedrn不知错误在哪里,望高手指教
连接smtp服务器出现错误
fsockopen(): php_hostconnect: connect failed in E:\Program Files\Apache Group\Apache2\htdocs\test\test.php on line 31rnrn发生这种错误,怎么也连不上。rn昨天曾经连上过一次,个位大虾帮帮偶。rn
Can't
我用Visual InterDev新建一个New Web Project,在出现的第一个界面中要求输入服务器,我输的是我的计算机名,按“NEXT”后,总是提示Unable to contact Web Server http://我的服务器名,(只有重装操作系统才好)不知道是什么原因?
paramiko通过ssh远程登陆服务器执行命令出现错误的问题
最近为了要实现对远程linux服务器的上传,下载文件 ,和对远程服务器操作的命令,因此用到了python的一个模块paramiko来实现,上传文件和下载文件这些基本命令是很容易实现的,还有就是通过exec_command(cmd)命令能对服务器进行一些基本的操作。。。 但是在这个过程中我遇到了一些问题(学校的服务器是由许多人用的,我在服务器目录下安装了anaconda),由于我要运行的命...
'utf-8' codec can't decode byte 0xca in position 4
先祭出报错的内容图![图片说明](https://img-ask.csdn.net/upload/201708/10/1502343786_587405.png)nn我是按照网上的教程敲得第一个web
复制一个目录,出现错误can't create symbolic link
目标盘的文件系统是fat,源盘的文件系统是ext3,root用户身份rn我的命令参数为-r -H --copy-contents,只使用-r参数也是一样的错误。rncan't create symbolic link, '...': operation not permited.rn
文本处理'utf8' codec can't decode特殊解决方案
一般情况下,在Python文件最开始输入↓就可以解决大部分问题# -*- coding:utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8')再不济,直接全部修改编码格式吧→如何修改Python编码格式 然而,人生不是一帆风顺,改过去改过来还是一堆bug,比如像我...敲重点!!!这时候,来试一试替换一些乱七八糟的东西吧!...
多模块连接错误 can't find xxx.obj 新手入门 请指教!
rn估计错误是在两个所有模块几乎都要用到的参数 BUFFER 和 ASCNUM 上,但加上public 声明 和extern 等还是会出显现无法打开 xxx.obj的问题,请大侠指教rn模块一rnrnTITLE PROGRAMrnPAGE 60,132rnrn EXTRN CLEAR:FARrn EXTRN CURSOR:FARrn EXTRN GETDATA:FARrn EXTRN CONVERT:FARrn EXTRN DIS:FARrn PUBLIC BUFFER , ASCNUMrn rn .MODEL SMALLrn .STACK 64rn;-------------------------------rn .DATArn rnBUFFER DB 30,?,30 DUP(?)rn ORG 30HrnASCNUM DB CR,LF,5 DUP(?) , '$'rnrnCR EQU 0DHrnLF EQU 0AHrn;-------------------------------rn .CODErnMAIN PROC FARrn MOV AX,@DATArn MOV DS,AXrn CALL CLEARrn CALL CURSORrn CALL GETDATArn CALL CONVERTrn CALL DISrn MOV AH,4CHrn INT 21HrnMAIN ENDPrn END MAINrn模块2rnrnTITLE MEINE_DISrnPAGE 60 , 132rn EXTRN BUFFER:BYTErn EXTRN ASCNUM:BYTErn rn PUBLIC DISrn rn .MODEL SMALL rn .CODErn rnDIS PROC FARrn MOV AH , 09rn MOV DX , OFFSET ASCNUMrn INT 21Hrn RETrnDIS ENDPrn ENDrn模块3rnrnTITLE MEINE_CONVERTrnPAGE 60 , 132rn EXTRN BUFFER:BYTErn EXTRN ASCNUM:BYTErn rn PUBLIC CONVERTrn rn .MODEL SMALL rn .CODErnrnCONVERT PROC FARrn MOV BX , OFFSET BUFFERrn MOV CL , [BX] + 1rn SUB CH , CHrn MOV DI , CXrn AND DL , 00Hrn MOV BYTE PTR[BX + DI] + 2 , 20Hrn rnAGAIN: MOV AL , [BX] + 2rn DEC CL rn CMP AL , 61Hrn JB NEXTrn CMP AL , 7AHrn JA NEXTrn AND AL , 11011111Brn rnNEXT: rn SUB AL , 40Hrn ADD DL , AL rn INC BXrn CMP CL , 00Hrn JB HEXrn CMP CL , 00Hrn JA AGAINrn rnHEX : MOV CX , 10 rn MOV SI , OFFSET ASCNUM rn ADD SI , 5rn DEC SIrn SUB AX , AXrn MOV AX , DXrn rnBACK : SUB DX , DXrn DIV CXrn OR DL , 30Hrn MOV [SI] , DLrn DEC SIrn CMP AX , 0rn JA BACK rn RET rnCONVERT ENDPrn ENDrn模块4rn;--------------------------------rnTITLE MEINE_CURSORrnPAGE 60 , 132rn EXTRN BUFFER:BYTErn EXTRN ASCNUM:BYTErn rn PUBLIC CURSORrn rn .MODEL SMALL rn .CODErnCURSOR PROC FARrn MOV AH , 02rn MOV BH , 00rn MOV DL , 01rn MOV DH , 03rn INT 10Hrn RETrnCURSOR ENDPrn ENDrn模块5rn;--------------------------------rn;....rnTITLE MEINE_CLEARrnPAGE 60 , 132rn EXTRN BUFFER:BYTErn EXTRN ASCNUM:BYTErn rn PUBLIC CLEARrn rn .MODEL SMALL rn .CODErn rnCLEAR PROC FARrn MOV AX , 0600Hrn MOV BH , 07rn MOV CX , 0000rn MOV DX , 184FHrn INT 10Hrn RETrnCLEAR ENDPrn ENDrn模块6rnrnTITLE MEINE_GETDATArnPAGE 60 , 132rn rn EXTRN BUFFER:BYTErn EXTRN ASCNUM:BYTErn rn PUBLIC GETDATArn rn .MODEL SMALL rn .CODErn rnGETDATA PROCrn MOV AH , 0AHrn MOV DX , OFFSET BUFFERrn INT 21Hrn RETrnGETDATA ENDPrn END
安装小小输入法时出现can't read yong.xml错误
网上经常有人问道,在Linux操作系统中安装小小输入法时,会出现can't read yong.xml错误,本人也遇到了此问题,搜索了网上许多资料,却始终没有正解。在无数次的重装系统及无数次的重装小小输入法后,终于查明了真相,并给出了解决的方法。其实,也不能说是解决方法,只是给出了一点所谓的Linux高手们非常容易忽视的,需要特别注意的地方。(文后附上了标准的安装流程)
编译内核时出现can't open file "lib/Kconfig.kgdb错误
在编译内核时,出现这个错误,有谁知道怎么解决啊?rnroot@ubuntu:/nxp/mozart_kernel-1.36# make mozart3_defconfigrnlib/Kconfig.debug:872: can't open file "lib/Kconfig.kgdb"rnmake[1]: *** [mozart3_defconfig] Error 1rnmake: *** [mozart3_defconfig] Error 2rn
ActiveXObject("WScript.Shell");出现错误“Automation server can't create object”
这个页面大家在本机用ie打开,应该都可以运行,但是放到tomcat上却不行:rnrnrnrnrn rn rnrnrnrnrnrnrnrnrnvar Shell=new ActiveXObject("WScript.Shell");出现错误“Automation server can't create object”rn把站点加为信任也不行,哪位大虾指点一下.
Windows + GTK2 + Perl + Apache,遇到Can't load Glib.dll错误
各位大侠:rn小弟是perl菜鸟,近来在window xp下用gtk2+perl画了个界面,在本地可以运行成功。rn我装gtk2用的是camel box,安装路径是C:\camelbox,rnPerl用的版本是5.10,安装路径是C:\Perlrn然后我想用Apache建一个服务器端,让客户端可以通过ip来访问执行我写的这个小程序,名字是test.cgi,插一句,不知为什么我不管怎么修改Apache的配置文件httpd.conf,都无法从客户端执行test.pl,而改为test.cgi就可以运行了rn环境变量设置如下:rnPERL5LIB C:\camelbox\site\librnrnPATH C:\camelbox\bin;C:\camelbox\site\lib\auto\GlibrnrnPath c:\perl\site\bin;c:\perl\bin;C:\Perl\site\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Windows Imaging\;C:\PROGRA~1\JnDTech\CVD\bin;C:\Dev-Cpp\MinGW32\bin;C:\camelbox\site\librnrn我遇到的问题是:rn从客户端访问Apache服务器,类似这样:http://XXX.XXX.XXX.XXX/cgi-bin/test.cgi,会遇到ternal Server Error错误。在Apache的error.log中会有这样的log:rn Can't load 'C:\\camelbox\\site\\lib/auto/Glib/Glib.dll' for module Glib: load_file:\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3 at C:/Perl/lib/DynaLoader.pm line 201.\rrn at C:/Apache2.2/cgi-bin/test.cgi line 11\rrn Compilation failed in require at C:/Apache2.2/cgi-bin/test.cgi line 11.\rrn BEGIN failed--compilation aborted at C:/Apache2.2/cgi-bin/test.cgi line 11.\rrnrn我在网上查到这样的解答:rn如果提示不能导入 Glib.dll,请确认 Gtk 运行环境的 bin 目录是系统环境变量 PATH 中,没有的话要加到这个环境变量中rnrn我尝试的方法为:rn1.确认服务器端的环境变量已经正确设置;rn2.client端的环境变量设置为和服务器端一样;rn3.在test.cgi中加入rnBEGIN rnunshift(@INC, "C:\\camelbox\\site\\lib");rnrnBEGIN rnunshift(@INC, "C:\\camelbox\\site\\lib\\auto\\Glib");rnrnuse lib "C:/camelbox/site/lib"rn4.修改服务器端的C:/camelbox目录权限为完全控制rnrn沮丧地发现以上方法都不行都不行,恳请各位大侠指点一二,小弟在此跪谢了!rnrnPS,这种使用Apache架设服务器端,在服务器端生成界面,真的可以传到客户端吗?会不会从理论上就是不可行的?rnrnrnrn
FreeSSHd 两种连接方式的配置
之前远程部署,都是用的powershellserver.但是那个东东隔断时间,就要更换产品码。有点麻烦。今天又载了freesshd来用。话不多说,看配置: 这里要注意下,开启ssh服务后,要去windows服务看一下,必须那里也显示启动了。有时候这两者不同步。 这里改成服务器地址,端口默认是22,也可以改成别的。最大连接数默认是0,一定要改! 其他地方配置保持默认就行。如此,用户名/密码登录方
【Windows】freeSSHd开启ssh出错
描述:打开freesshd设置面板的时候发现“SSH server is not running”下面是个红叉,当我点击“ Click here to Start”的时候,提示“the specified address is already in use”。我点击SSH选项卡,然后设置Listen address 为0.0.0.0(all interfaces). 服务里面freesshdser...
服务器提示Can’t assignrequested address的问题分析
服务器提示Can’t assignrequested address的问题分析一,问题说明最近工作中遇到一个问题,在开通相关ACL之后,发现网络还是无法访问,在源主机上通过telnet 进行测试,发现telnet 目的IP 目的Port 会提示Cannot assign requested address。在网上搜索一些相关问题的说明时,发现大部分到时说明大量TIME_WAIT状态的连接,导致源主机
Can't find dependent libraries,悲剧的错误
教授给了一个java程序的例子,里面调用了一个dll,别人都可以运行成功,为什么我运行就报rnException in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Administrator\Desktop\adapter_integrated\SimplePacketDriver.dll: Can't find dependent librariesrn at java.lang.ClassLoader$NativeLibrary.load(Native Method)rn at java.lang.ClassLoader.loadLibrary0(Unknown Source)rn at java.lang.ClassLoader.loadLibrary(Unknown Source)rn at java.lang.Runtime.loadLibrary0(Unknown Source)rn at java.lang.System.loadLibrary(Unknown Source)rn at SimplePacketDriver.(SimplePacketDriver.java:54)rn at PacketDriverExample.main(PacketDriverExample.java:7)rnrn工程文件夹,system32,jdk/bin下面都放了这个DLL的,为什么还是不行啊,别人也是一样的就能运行
can't seal package错误怎么回事?
bodyData instanceof Ap0005LocalStartBodyDatarnrn执行时候,错误rncan't seal package com.nec.jp.navute.nav.ap.n000.common.data: already loadedrn发生,请问为什么?怎么解决?rnrnrn说明测试时传入的bodyData 是Ap0008EventHookBodyData类型rnrnrn
文件上传时出现 File can't be saved
底下是错误信息,请高手指教,谢谢!rnrnError: 500rnLocation: /test01/sample2.jsprnInternal Servlet Error:rnrnjavax.servlet.ServletException: File can't be saved (1120).rn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)rn at test01.sample2_1._jspService(sample2_1.java:144)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)rn at org.apache.tomcat.core.Handler.invoke(Handler.java:322)rn at org.apache.tomcat.core.Handler.service(Handler.java:235)rn at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)rn at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)rn at java.lang.Thread.run(Thread.java:536)rnRoot cause:rncom.jspsmart.upload.SmartUploadException: File can't be saved (1120).rn at com.jspsmart.upload.File.saveAs(File.java:108)rn at com.jspsmart.upload.File.saveAs(File.java:65)rn at test01.sample2_1._jspService(sample2_1.java:121)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)rn at org.apache.tomcat.core.Handler.invoke(Handler.java:322)rn at org.apache.tomcat.core.Handler.service(Handler.java:235)rn at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)rn at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)rn at java.lang.Thread.run(Thread.java:536)rnrn
JACOB出现Can't co-create object,请教!!!
在项目中因需求需要使用第三方的OCX,rnrn按照例子可以实现ActiveXComponent ocx = new ActiveXComponent("Word.Application");并获取到word文档的信息。rnrn但想获取第三方OCX时,就报Can't co-create object的错了,那个第三方OCX也注册了,通过网页的ojbect也可以进行引用,但到了JAVA中使用JACOB引用就会报错,不明所以,请解答。
错误: can't have multiple occurrences of language
初学,写一程序如下:rn<%@page language = "java" import = "java.io.*"%>rn<%@page language = "java" import = "java.util.*"%>rnrnrnrn<%rntryrnrnString pollDirectory = System.getProperty("poll.dir");rnFile pollFile = null;rnif(pollDirectory!=null)rnrnpollFile = new File(pollDirectory,"poll.in");rnrnelsernrnpollFile = new File("poll.in");rnrnrnBufferedReader in = new BufferedReader(new FileReader(pollFile));rnString question = in.readLine();rnString line;rnVector answers = new Vector();rnrnwhile((line = in.readLine())!=null)rnrnanswers.addElement(line);rnrnin.close();rn%>rn rnPlease take a few moments to respond to our pollrn rn rn<%=question%>rn rn<%rnEnumeration e = answers.elements();rnwhile(e.hasMoreElements())rnrnString answer = (String)e.nextElement();rn%>rn<%=answer%>rn rn<%rnrn%>rn rnrnrn<%rnrncatch(IOException exc)rn%>rnrnrnrn错误为: can't have multiple occurrences of languagern什么意思?应该怎么改?rn
Sqoop错误GENERIC_JDBC_CONNECTOR_0016:Can't fetch schema -
这几天使用Sqoop 1.99.7 的Java API编一个程序,将MySQL数据库recommend中的rate表信息导入hdfs中。但是一直提示不能fetch数据库schema,看错误信息,貌似将传入的schema名称字符串连同双引号一起作为了schema名称。请大家看看这个问题怎么解?忧郁了好几天了。。。。希望大家能帮忙找出问题所在,感谢!!!!rnprivate void mysqlToHDFS() rnrn String url = "http://192.168.2.100:12000/sqoop/";rn SqoopClient client = new SqoopClient(url);rnrn MLink fromLink = client.createLink("generic-jdbc-connector");rn fromLink.setName("jdbc connector");rn fromLink.setCreationUser("Potala");rn MLinkConfig fromLinkConfig = fromLink.getConnectorLinkConfig();rn fromLinkConfig.getStringInput("linkConfig.connectionString")rn .setValue("jdbc:mysql://192.168.2.128:3306/recommend");rn fromLinkConfig.getStringInput("linkConfig.jdbcDriver").setValue("com.mysql.jdbc.Driver");rn fromLinkConfig.getStringInput("linkConfig.username").setValue("root");rn fromLinkConfig.getStringInput("linkConfig.password").setValue("1234");rn client.saveLink(fromLink);rnrn MLink toLink = client.createLink("hdfs-connector");rn toLink.setName("hdfs connector");rn toLink.setCreationUser("Potala");rn MLinkConfig toLinkConfig = toLink.getConnectorLinkConfig();rn toLinkConfig.getStringInput("linkConfig.uri").setValue("hdfs://192.168.2.100:9000");rn client.saveLink(toLink);rnrn MJob job = client.createJob("jdbc connector", "hdfs connector");rn job.setName("MySQL to HDFS job");rn job.setCreationUser("Potala");rnrn MFromConfig fromJobConfig = job.getFromJobConfig();rn [color=#FF0000]fromJobConfig.getStringInput("fromJobConfig.tableName").setValue("recommend");rn fromJobConfig.getStringInput("fromJobConfig.tableName").setValue("rate");rn fromJobConfig.getStringInput("fromJobConfig.partitionColumn").setValue("rateId");[/color]rnrn MToConfig toJobConfig = job.getToJobConfig();rn toJobConfig.getStringInput("toJobConfig.outputDirectory").setValue("/data/rate");rnrn MDriverConfig driverConfig = job.getDriverConfig();rn driverConfig.getIntegerInput("throttlingConfig.numExtractors").setValue(3);rnrn client.saveJob(job);rnrn client.startJob("MySQL to HDFS job");rn client.deleteJob(job.getName());rn client.deleteLink(fromLink.getName());rn client.deleteLink(toLink.getName());rn rnrn错误信息如下:rnException in thread "Thread-7" org.apache.sqoop.common.SqoopException: CLIENT_0001:Server has returned exceptionrn at org.apache.sqoop.client.request.ResourceRequest.doHttpRequest(ResourceRequest.java:137)rn at org.apache.sqoop.client.request.ResourceRequest.put(ResourceRequest.java:187)rn at org.apache.sqoop.client.request.JobResourceRequest.start(JobResourceRequest.java:113)rn at org.apache.sqoop.client.request.SqoopResourceRequests.startJob(SqoopResourceRequests.java:170)rn at org.apache.sqoop.client.SqoopClient.startJob(SqoopClient.java:477)rn at com.recommender.util.RecommendThread.mysqlToHDFS(RecommendThread.java:69)rn at com.recommender.util.RecommendThread.run(RecommendThread.java:19)rnCaused by: org.apache.sqoop.common.SqoopException: [color=#FF0000]GENERIC_JDBC_CONNECTOR_0016:Can't fetch schema -[/color] rn at org.apache.sqoop.connector.jdbc.GenericJdbcFromInitializer.initialize(GenericJdbcFromInitializer.java:64)rn at org.apache.sqoop.connector.jdbc.GenericJdbcFromInitializer.initialize(GenericJdbcFromInitializer.java:47)rn at org.apache.sqoop.driver.JobManager$1.call(JobManager.java:520)rn at org.apache.sqoop.driver.JobManager$1.call(JobManager.java:517)rn at org.apache.sqoop.utils.ClassUtils.executeWithClassLoader(ClassUtils.java:281)rn at org.apache.sqoop.driver.JobManager.initializeConnector(JobManager.java:516)rn at org.apache.sqoop.driver.JobManager.createJobRequest(JobManager.java:423)rn at org.apache.sqoop.driver.JobManager.start(JobManager.java:317)rn at org.apache.sqoop.handler.JobRequestHandler.startJob(JobRequestHandler.java:353)rn at org.apache.sqoop.handler.JobRequestHandler.handleEvent(JobRequestHandler.java:114)rn at org.apache.sqoop.server.v1.JobServlet.handlePutRequest(JobServlet.java:84)rn at org.apache.sqoop.server.SqoopProtocolServlet.doPut(SqoopProtocolServlet.java:81)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)rn at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)rn at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)rn at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:574)rn at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:269)rn at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:544)rn at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)rn at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)rn at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)rn at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)rn at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)rn at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)rn at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)rn at org.eclipse.jetty.server.Server.handle(Server.java:499)rn at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)rn at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)rn at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near[color=#FF0000] '"recommend"."rate"'[/color] at line 1rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:422)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)rn at com.mysql.jdbc.Util.getInstance(Util.java:384)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)rn at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113)rn at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2275)rn at org.apache.sqoop.connector.jdbc.GenericJdbcFromInitializer.configurePartitionProperties(GenericJdbcFromInitializer.java:257)rn at org.apache.sqoop.connector.jdbc.GenericJdbcFromInitializer.initialize(GenericJdbcFromInitializer.java:61)rn ... 32 more
can't iniatial data binding错误
谁遇到过这个错误?请问是什么原因引起的?又是怎么解决的呢?rn
can't create a new thread错误
高手指教:rnrnrn最近php(5.2.13)+mysql(5.0.45)+window2003服务器运行遇到一个错误:rnrncan't create a new thread(errno 12):if you are not avaiable out of memory ....rnrn间歇性的出现此问题,每次都是重启mysql服务器解决问题(不重启要过会访问页面也恢复正常)rnrnrn我查看了mysql的内存占用,是在不断升高的rnrn而且在 数据库服务器中 同时安装了mysql 和 sqlserverrnrn我的my.ini 文件配置如下rnrn[mysqld]rnport = 3306rnsocket = /tmp/mysql.sockrnskip-lockingrnrnrn# 各种缓存大小rnrn# 索引块缓存rnkey_buffer_size = 512Mrnmax_allowed_packet = 1Mrnrn# 所有线程打开表的数量rntable_cache = 1024rnrn# 对排序缓存rnsort_buffer_size = 1Mrnrn# net_buffer_length = 8Krnrn# 读缓存rnread_buffer_size = 1Mrnrnread_rnd_buffer_size = 2Mrnrn# 排序myisam索引分配的缓冲区rnmyisam_sort_buffer_size = 4Mrnrnrnrnjoin_buffer_size= 16Mrnrnwait_timeout = 120rnrn# 可以复用的保存在缓存中的线程数量rnthread_cache_size=120rnrnrn# 查询缓冲rnquery_cache_size = 32Mrnrn#临时表大小rntmp_table_size= 64Mrnrn# 真实的并发处理数(cpu内核数)rnthread_concurrency=4rnrn请问如何解决此问题rnrn没有多少分,我全部奉上
为什么出can't redeclare class错误????
运行php时,老出错:rnFatal error: Cannot redeclare class fasttemplate in c:\testphp\include\class.FastTemplate.php on line 7rn已经检查了include改为include-once,还是一样,rn是否在php.ini中有什么设置还是模块方式安装的php有问题,因为在另一台服务器上运行没有错?rn
关于can't load library '****.so'的错误
我编写的程序通过了编译,当我将这个程序所在目录mount到开发板的系统中后,执行这个程序出现can't load library 'lib_Engine.so'的错误,可是我将开发包中的例子程序放里面运行却没这错误(例子程序其实也调用了这个库),我怀疑是Makefile里面的编译配置不对,谁能帮我看看是哪的问题。一下附上我的Makefile文件内容:rn注:我程序中一共用到两个so文件,一个是lib_Engine.so,另一个是libmpi.sornrn####################################3rnDVS_ROOT = $(PWD)/../rnrnCC = arm-uclibc-linux-gcc rnCFLAGS = -grnINCLUDE = -I. \rn -I$(DVS_ROOT)mpp/include \rn -I$(DVS_ROOT)pub/include \rn -I$(DVS_ROOT)mpp/include/mkprnrnLIB_PATH = -L$(DVS_ROOT)mpp/lib.relrnrnLIB = $(LIB_PATH)/libmpi.a \rn $(LIB_PATH)/lib_Engine.a \rn $(LIB_PATH)/libtde.arnrnrnOBJS = code.o config.o log.o func.o draw.o avenc.o rnHDRS = code.h config.h log.h func.h draw.h avenc.h rnrncode: $(OBJS)rn $(CC) $(OBJS) -lpthread -lm -lmpi -ltde -l_Engine -o $@ $(LIB) $(LIB_PATH) rn%.o: %.c $(HDRS)rn $(CC) $(CFLAGS) $(INCLUDE) -c $< $(LIB)rnrnclean:rn rm -rf code *.o
JFreeChart 错误:Can't create cache file!
用JFreeChart 1.06做的系统,原来一直都运行得很好,程序没有任何修改,今天竟然出现:javax.imageio.IIOException: Can't create cache file!rnrn请问大虾们这是什么原因啊!rnrn出错语句是:ChartUtilities.saveChartAsJPEG(new File(fPathName),this.chartAlpha,chart,chartwidth,chartheight);rnrn很能够郁闷啊!
jsp:useBean can't find class 错误
我用的是resin-2.1.12 j2sdk1.4.2_01 操作系统是winxprn运行时总是出现jsp:useBean can't find class 错误,写的javaBean已经编程成class文件放在web-inf\classes目录里了。rnCLASSPATH我设的是C:\j2sdk1.4.2_01\lib\dt.jar;C:\j2sdk1.4.2_01\lib\tools.jarrnrn我试了好长时间都不行,谁能来帮帮我!
CVS错误can't create temporary directory
今天在提交新文件的时候CVS提示出错:rncan't create temporary directory /tmp/cvs-serv21527rnNo space left on devicernrn在线等,急....
Can't run 16-bit windows program
Do you ever meet problems like this:rn*********************************rnCan't run 16-bit windows programrnrnOne of the library files needed to run c:\..\setup.exe is damaged.Please rnreinatall this application.rn*********************************rn我想这是在一个NTServer下,由于误装了某种软件,导致NT对旧版InstallShield所打包的16位应用软件不能识别,所以不能运行.可我就是不知道如何解决.rn
出现can not locate webappclassloader 错误
  就是在class.forName(driver)一句出现错误。can not locate webappclassLoader.java from project class/source path rn stop in method org.apache.catalina.loader.webappclassloader.loadClass()rnrn请问如何解决?
paramiko远程密码连接
paramiko远程密码连接 基于ssh用于连接远程服务器作操作,可以远程执行命令,上传文件,下载文件等 import parpmiko #调用parpmiko模块 client=paramiko.SSHClient() #创建ssh对象 client.set_missing_host_key_policy(paramiko.AutoAddpolicy()) #如果之前没有与目的ip...
相关热词 c# 线程顺序 c#昨天当前时间 c# 多进程 锁 c#mysql图片存取 c# ocx 委托事件 c# 读取类的属性和值 c# out 使用限制 c#获取url的id c#怎么进行分页查询 c# update 集合