Azure / R-server - head causes process to hang - r

I'm trying to use the head command for an hdfs data set in Azure using R-server via RStudio. This has worked in the past but in the last 2 days it seems like it's stopped working. When I execute it, it tells me the process has started running but never prints anything.
rxGetInfo seems to work fine on the same data. Any ideas to check why this is happening?

Related

Opencpu long running R analysis

I have an R code which I am trying to call over HTTP using opencpu, but for the long running code, it is getting timeout. I came across https://github.com/joelkuiper/aplomb
Unfortunately, the documentation is not detailed and I am unable to figure out how to make it work once it is deployed and the container is running.
Look in the file /etc/opencpu/server.conf
You should see parameters timelimit.get and timelimit.post (values are in seconds). Increase them to something that seems reasonable for your code, and save it.
Then restart the service:
sudo service opencpu restart
Then try again - hope it works!

Where can I deploy R script and schedule to run it in a timely manner?

I have a small R script. Typically, 15-20 lines of code. This script replies to random people on Twitter. Everything is working fine when I run the code. Now, I want to auto-run this after fixed intervals of time. So, I made a .bat the file of the R script and schedule the task in the windows scheduler to run after every 15 mins. This works fine as well and the way I expect it to work. Now, the problem is the scheduler works only when my system is working. Once I shut down my system, the scheduler also stops working and the script does not execute.
I want a server (not sure if this is the right word), where I can host the R file or .bat file and where I can schedule the script to execute after every X mins. I need a server (??) because I want this to be active 24 X 7.
I have tried deploying it on shinyapps.io but somehow it doesn't work. Have gone through this as well, with no help. Any help would be appreciated.

RSelenium WebDriver TimeoutException after ClickElement

I'm using the Selenium WebDriver in R to parse some online data. I originally wrote the script a few months ago, and it worked great. However, I ran it again today and I receive the following error after running ClickElement():
Error: Summary: ScriptTimeout
Detail: A script did not complete before its timeout expired.
class: org.openqa.selenium.TimeoutException
I'm using Chrome as my browser, and have updated to the newest version (2.20) of ChromeDriver (I was using 2.19 when I wrote the script). This error is peculiar because it occurs pretty late in my script, after I have already used ClickElement() multiple other times. The element being clicked is a download button. Selenium completes the click and starts the download, but then throws the above error after a few minutes. At this point, the script continues.
I can only think of a few possible issues:
The ChromeDriver update has broken something. I've tried it with both 2.19 and 2.20, and I'm unsure how to test this further.
Some issue outside of my understanding of Selenium. From some experimenting and trying to Google similar problems, I've decided that it might have something to do with the download process itself, i.e. the driver freezes up because the download is currently running on the page.
I'm not sure what is going on, and I don't know enough about Selenium to troubleshoot it effectively. What can I do? I imagine that I'll need an alternative way to perform the download, or at least a way to click the element while ignoring the ScriptTimeout error. I receive the same error when I try to send the enter key to the element as well.
I have a similar issue but I can't figure out.
Try this after your clickElement code
Sys.sleep(2)

Meteor.js - randomly everything is 'undefined' -- why?

So I'm working on my Meteor project and all of a sudden everything stops working and my console reports that everything is 'undefined'. See screenshot. Why does this happen? Usually things will just randomly start working again after I reboot my machine or go get lunch.
This can happen if you have a hot code reload during when the page is loading from a previous hot code reload.
Your browser will eventually reconnect to the server, reconnect & refresh the page. In the case above it looks the the bit of Js that connects to the server doesn't get loaded to begin with (the DDP bit) so it doesn't behave as normal. If it reconnects it can fix it self by refreshing.
It's very hard to tell what exactly is causing it from the information you've given. I'd look at custom packages that replace core packages or some kind of of package you have that runs early on in your code that would stop the normal loading of a project.
If you're using meteor on windows there are a couple of bugs that do this too. I'm not sure how to get past those besides doing Ctrl+C to stop and then using meteor to start the project again.

ERROR: Problems trying to get index of users! Integrate Drupal 7 and Moodle 2.4

HI all I am the following error ERROR: Problems trying to get index of users!, when I try to run the script to synchronize users between Drupal and Moodle in cygwin it runs without problems and shows the total number of users I have on Drupal database, running the same script in my browser it shows me the error already cited, does any one was able to overcame this problem?
That script is only for running from the command line. I don't believe it is meant to work/will work running from the browser. I am actually getting the same error right now while trying to run from the command line, and I'm pulling my hair out trying to figure out why.

Resources