remote-server

Exception while submitting a mapreduce job from remote system

こ雲淡風輕ζ 提交于 2019-12-02 13:08:54
问题 I got an exception while submitting a mapreduce job from remote system 13/10/28 18:49:52 ERROR security.UserGroupInformation: PriviledgedActionException as:root cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/F:/Workspaces/Test/Hadoop/test My hadoop and mapreduce envirnment is configured on a linux machine. I submit the wordcount job from a local Windows PC as follows: public static void main(String[] args) throws Exception { UserGroupInformation ugi =

PHP Curl script to pull data from remote server every 10 minutes

匆匆过客 提交于 2019-12-02 12:34:49
问题 I'm trying to create a PHP script which pulls xml data (text and images) from a remote server and inserts it in a local database. I need to run this script every 10 minutes or so (and overwrite the existing data in my db)... if I don't get a response from the server after about a minute, I would like the request to abort until the next time the script runs 10 minutes later. Can anyone please either give me some idea as to how I can achieve this or point me to a tutorial that explains it in

Exception while submitting a mapreduce job from remote system

大憨熊 提交于 2019-12-02 07:24:37
I got an exception while submitting a mapreduce job from remote system 13/10/28 18:49:52 ERROR security.UserGroupInformation: PriviledgedActionException as:root cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/F:/Workspaces/Test/Hadoop/test My hadoop and mapreduce envirnment is configured on a linux machine. I submit the wordcount job from a local Windows PC as follows: public static void main(String[] args) throws Exception { UserGroupInformation ugi = UserGroupInformation.createRemoteUser("root"); try { ugi.doAs(new PrivilegedExceptionAction<Void>() {

Failed to remotely execute R script which loads library “rhdfs”

余生颓废 提交于 2019-12-02 06:20:34
I'm working on a project using R-Hadoop, and got this problem. I'm using JSch in JAVA to ssh to remote hadoop pseudo-cluster, and here are part of Java code to create connection. /* Create a connection instance */ Connection conn = new Connection(hostname); /* Now connect */ conn.connect(); /* Authenticate */ boolean isAuthenticated = conn.authenticateWithPassword(username, password); if (isAuthenticated == false) throw new IOException("Authentication failed."); /* Create a session */ Session sess = conn.openSession(); //sess.execCommand("uname -a && date && uptime && who"); sess.execCommand(

Launch Notepad.exe using PsExec sysinternal tool

北城余情 提交于 2019-12-02 04:39:49
问题 I am trying to launch notepad.exe on remote server A from local server B. below is the command which works fine and I could see notepad.exe process on Task Manager however when I physically remote login to server I do not see notepad launched (GUI). C:\Windows\System32>D:\SysInternals\psexec.exe \\serverB -u Domain\user1 -p passXX -i -d notepad.exe PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com notepad.exe started on

Launch Notepad.exe using PsExec sysinternal tool

心不动则不痛 提交于 2019-12-02 00:01:45
I am trying to launch notepad.exe on remote server A from local server B. below is the command which works fine and I could see notepad.exe process on Task Manager however when I physically remote login to server I do not see notepad launched (GUI). C:\Windows\System32>D:\SysInternals\psexec.exe \\serverB -u Domain\user1 -p passXX -i -d notepad.exe PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com notepad.exe started on serverB with process ID 3328. How would I see notepad GUI when logged in ? is serverB a terminal server ?

upload files to remote server using multer sftp in express Node js?

对着背影说爱祢 提交于 2019-12-01 15:46:45
I'm trying to upload the files to remote server using multer-sftp in node js. since i'm following the official docs npm multer-sftp . Previously i've uploading the files to Amazon S3 instead of remote server. now i want to upload the files to remote server. API: exports.newFileUpload = function(req , res , next){ var storage = sftpStorage({ sftp: { host: 'http://www.port*****es.in/', port: 22, username: 'username', password: 'password' }, destination: function (req, file, cb) { cb(null, 'images/') }, filename: function (req, file, cb) { cb(null, file.fieldname + '-' + Date.now()) } }) var

upload files to remote server using multer sftp in express Node js?

*爱你&永不变心* 提交于 2019-12-01 14:33:56
问题 I'm trying to upload the files to remote server using multer-sftp in node js. since i'm following the official docs npm multer-sftp. Previously i've uploading the files to Amazon S3 instead of remote server. now i want to upload the files to remote server. API: exports.newFileUpload = function(req , res , next){ var storage = sftpStorage({ sftp: { host: 'http://www.port*****es.in/', port: 22, username: 'username', password: 'password' }, destination: function (req, file, cb) { cb(null,

How to check if database exist on Remote Server through SQL query

天涯浪子 提交于 2019-12-01 14:07:55
I have a table as following in SQL Server 2012. |---------------------|------------------|------------------| | ClientName | servername |Databasename | |---------------------|------------------|------------------| | c1 | s1 | b1 | | c2 | s2 | b2 | | c3 | s4 | b4 | | c4 | s5 | b6 | |---------------------|------------------|------------------| Is there a way to return only rows for which database exists on the server names mentioned in the table? I searched in forums for the answer but couldn't get one. I am aware that there exists a query as mentioned here which checks whether database on that

How to check if database exist on Remote Server through SQL query

我是研究僧i 提交于 2019-12-01 13:08:43
问题 I have a table as following in SQL Server 2012. |---------------------|------------------|------------------| | ClientName | servername |Databasename | |---------------------|------------------|------------------| | c1 | s1 | b1 | | c2 | s2 | b2 | | c3 | s4 | b4 | | c4 | s5 | b6 | |---------------------|------------------|------------------| Is there a way to return only rows for which database exists on the server names mentioned in the table? I searched in forums for the answer but couldn't