![]() # Write an app that uses spark to access data on Databricks # First, install the following packages: install.packages (‘ future’ ) install.packages (‘ promises’ ) library ( shiny ) library ( promises ) library ( future ) plan ( multisession ) HEARTBEAT_INTERVAL_MILLIS = 1000 # 1 second # Define the long Spark job here run_spark % result () # Or: fut % result() busy ( 1 ) # Catch exceptions and notify the user fut <- catch ( fut, function ( e ) shinyApp ( ui = ui, server = server )
0 Comments
Leave a Reply. |