Re: run rstdio and hadoop 1.2.1 problem.

26 views
Skip to first unread message
Message has been deleted

Antonio Piccolboni

unread,
Sep 20, 2014, 11:04:15 PM9/20/14
to rha...@googlegroups.com
I don't see any RHadoop package mentioned here, so I need to ask you to either formulate your question like a problem report or find a different forum for your question. We don't support Rstdio, Hadoop or R here, even if they come up in relation to RHadoop. This is not a general forum for R and Hadoop users. Thanks


On Saturday, September 20, 2014 3:41:28 AM UTC-7, Chu Po-Wei wrote:

this is my problem


getStockHist <- function(x,start,end) {
+   y <<- getSymbols(x, from=start, to=end, adjust=TRUE) 
+   fmt <- toupper(gsub("\\^","",x)) 
+   as <<- transform(get(fmt),COMP=y)  
+   write.csv(
+     data.frame( date=index(as), coredata(as) ),
+     row.names=FALSE, quote=FALSE,
+     file=pipe(paste0("hadoop dfs -put - /user/root/stock/",y,".csv"))
+   )
+ };   y <- "a"
> as <- xts()
> getStockHist("YHOO",start="2013-12-01",end="2013-12-05")
sh: hadoop: command not found




small.ints = to.dfs(1:10)
Exception in thread "main" java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at java.io.File.createTempFile(File.java:1989)
at org.apache.hadoop.util.RunJar.main(RunJar.java:119)

I don't know. what Error?
Reply all
Reply to author
Forward
0 new messages