apache storm – spark submit – Can I configure a spark driver program to run on several workder nodes in parallel?

The program that I want to execute is a long-term work, which has a listner that keeps listening for new requests.
For load balancing purposes, I want to run the same program (having a listener) on several spark workers, is there any configuration that allows me to do this?

debian – Use the OpenVPN connection to run a program

To my knowledge, the Linux network stack can not be separated to use VPN only for one program. OpenVPN establishes a separate network interface (tun or tap device), then you can add a route through this interface. This can be done only for a specific address or for a range of addresses (even for all traffic on your IP network).

I found this question in the superuser: How to use different network interfaces for different processes?

But maybe you do not need those more complicated solutions from there. If you want to access a specific network address, which can only be accessed through VPN, you could also establish the OpenVPN connection normally and then make sure with the network routing, that you simply request that address (s) ( is) are routed through the VPN and the other things are not (that means that the routes to 0.0.0.0 / :: or default they are not handled by the VPN).

If you use graphical configuration software for the VPN as Network Manager, you must configure it so that "Use this connection only for resources in your network"or similar is active.

If you have a set of configuration scripts, make sure that some route add by default ... it does not run to route the default value through the VPN device or the gateway.

sorting – The System.err (Java) does not run on the correct line

In this code, the function System.err.println () it runs randomly on the line that does not correspond to it. I read that you have to use the System.err.flush (), but I do not know very well where to use it or how many times. I have indicated with a comment the line that gives me problems. This is the code:

import java.util.Scanner;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Principal {
    public static void main (String[] args) {
        // Read and show the Client file by console
        Client file = new File ("Client.txt");
        FileReader fileR = null;
        BufferedReader Breader = null;

        try {
            fileR = new FileReader (client);
            Breader = new BufferedReader (fileR);
        } catch (FileNotFoundException e) {
            System.err.println ("ERROR! File not found" + cliente.getName ());
            System.exit (0);
        }

        System.out.println ("~~ Client file ~~");
        try {
            String lines = "";
            while ((lineas = Breader.readLine ())! = null) {
                System.out.println (lines);
            }
        } catch (IOException e) {
            e.printStackTrace ();
        }

        // Read and show the invoice file by console
        File invoice = new File ("Faactura.txt");
        FileReader fileR2 = null;
        BufferedReader Breader2 = null;

        try {
            fileR2 = new FileReader (invoice);
            Breader2 = new BufferedReader (fileR2);
        } catch (FileNotFoundException e2) {
            / * HERE FAIL * / System.err.println (" nERROR! File not found" + factura.getName ());
            System.exit (0);
        }

        System.out.println (" n ~~ Invoice File ~~");
        try {
            String lineas2 = "";
            while ((lineas2 = Breader2.readLine ())! = null) {
                System.out.println (lineas2);
            }
        } catch (IOException e2) {
            e2.printStackTrace ();
        }
    }
}

I have purposely written "Faactura.txt" instead of "Invoice.txt" so that the System.err I added is skipped. The idea is that the text ERROR! Faactura.txt file not found a line break appears after reading the Client.txt file, and not in between.

Thank you very much in advance

Update iPhone 4 to run iOS 9

The latest version of iOS that can be installed on the iPhone 4 is iOS 7.1.2. It is not possible to update it to run iOS 9.

iPhone is quite old now according to the iOS launch schedule. It was discontinued in 2013 and Apple stopped attendance in 2014. To run iOS 9, you need at least one iPhone 4s that can run iOS 9.3.5.

SharePoint database: run a script for several lists within the same script editor

I know almost nothing about javascript, of course. I have the following script that gets a list by name and works perfectly. My problem is that when I copy it and insert a new list name for a second list, it does not work. I have tried many things, but I can not imagine how to alter / combine the code to work with several lists. Any advice is very appreciated.

Using SharePoint 2013 Foundation Server







Google Cloud Run Billing SKU

When using billing reports in the Google Cloud Console, I am trying to filter the SKUs related to Cloud Run.

What are the SKUs associated with Cloud Run?

SQL Server 2014: run the Agent Powershell script as administrator

Create a PowerShell proxy on the SQL Server agent that uses a privileged Windows account through a SQL Server credential.

CREATE CREDENTIAL DOCUMENTS.

How to create a proxy

This will allow you to run PowerShell as an administrator, directly from SQL Server.

Creating a credential is the first step, and is to execute a T-SQL statement like this:

CREATE CREDENTIAL MyPowerShellCredential
WITH IDENTITY = & # 39; DOMAIN  AdministratorAccount & # 39;
, SECRET = & # 39; AdministratorAccountPassword & # 39;  

Once the credential is created, you must create a SQL Server PowerShell Proxy. This should work:

Use msdb;
EXEC dbo.sp_add_proxy @proxy_name = N & # 39; MyPowerShellProxy & # 39;
, @ enabled = 1
, @description = N & # 39; Proxy used to run PowerShell as administrator & # 39;
, @credential_name = N & # 39; MyPowerShellCredential & # 39 ;;

After creating the proxy, you must enable it to be used by the PowerShell subsystem. This code causes:

Use msdb;
EXEC dbo.sp_grant_proxy_to_subsystem @proxy_name = N & # 39; MyPowerShellProxy & # 39;
, @subsystem_name = N & # 39; PowerShell & # 39;

Once you have created the proxy, you will need a step of the SQL Server Agent configured to run PowerShell, which will automatically use the PowerShell proxy.

This is a sample of the SQL Server Agent job that will execute your code:

USE [msdb]
TO GO
DECLARE binary @jobId (16);

EXEC msdb.dbo.sp_add_job @job_name = N & # 39; ResetAppPool & # 39;
, @enabled = 1
, @notify_level_eventlog = 0
, @notify_level_email = 2
, @notify_level_page = 2
, @delete_level = 0
, @category_name = N & # 39;[Uncategorized (Local)]& # 39;
, @owner_login_name = N & # 39; sa & # 39;
, @job_id = @jobId OUTPUT;

EXEC msdb.dbo.sp_add_jobserver @job_name = N & # 39; ResetAppPool & # 39;
, @server_name = N & # 39; (LOCAL) & # 39 ;;

EXEC msdb.dbo.sp_add_jobstep @job_name = N & # 39; ResetAppPool & # 39;
, @step_name = N & # 39; Step1 & # 39;
, @step_id = 1
, @cmdexec_success_code = 0
, @on_success_action = 1
, @on_fail_action = 2
, @retry_attempts = 0
, @retry_interval = 0
, @os_run_priority = 0
, @subsystem = N & # 39; PowerShell & # 39;
, @command = N & # 39; # Load IIS module:
Module of Import WebAdministration
# Set the name of the site we want to recycle to:
$ site = "Default website"
# Get group name by site name:
$ pool = (Get-Item "IIS:  Sites  $ site" | Select-Object applicationPool) .applicationPool
# Recycle the application group:
Restart-WebAppPool $ pool & # 39;
, @database_name = N & # 39; master & # 39;
, @flags = 0;

EXEC msdb.dbo.sp_update_job @job_name = N & # 39; ResetAppPool & # 39;
, @enabled = 1
, @start_step_id = 1
, @notify_level_eventlog = 0
, @notify_level_email = 2
, @notify_level_page = 2
, @delete_level = 0
, @ description = N & # 39; & # 39;
, @category_name = N & # 39;[Uncategorized (Local)]& # 39;
, @owner_login_name = N & # 39; sa & # 39;
, @notify_email_operator_name = N & # 39; & # 39;
, @notify_page_operator_name = N & # 39; & # 39;
TO GO

You could modify the work to send an email when it is executed, just so you know what worked.

windows 7 – python.exe is 0kb and cmd offers you "this application can not run on your PC. To search for a version, check with the software editor"

I am using 64-bit Windows 10. I had Python 2.7 (python-2.7.15.amd64.msi) running normally on my PC since October 2018. Suddenly, when I run> python on cmd I get the message:

"This application can not be run on your PC. To find a version for your PC, check with the software editor."

I noticed that the python.exe is set to 0KB
enter the description of the image here

I have tried to modify the administrator rights and some other alternative solution found in other sites / stackoverflow. But it does not seem to fix the problem.

Could you please advice?

Can not run Apache in Windows 2.4

I have manually installed Apache 2.4 and PHP 7 on my Windows 10 taking https://www.youtube.com/watch?v=kuMTZowwjus as a reference.

I have completed all the steps but when I run localhost, the IIS always arises.

I have tried the following approaches, but there is no luck so far:

  1. PID 4 is using the Post 80, which is "System"! So I can not kill the process.
  2. The IIS service stopped: iisreset / stop.
  3. The post was modified in httpd.conf: Listen: 127.0.0.1:122
  4. Restarted PC several times.
  5. Here is the output of telnet 127.0.0.1 80

    HTTP / 1.1 400 Bad Request
    Content type: text / html; charset = us-ascii
    Server: Microsoft-HTTPAPI / 2.0
    Date: Wednesday, April 17, 2019 14:38:05 GMT
    Connection: close
    Content-Length: 326

    Bad Request

    Incorrect request – Invalid verb


    HTTP Error 400. The request verb is not valid.

    Connection to the lost host.

Some articles say that Skype could be a possible culprit, but my Windows 10 has built-in Skype that I can not uninstall!

Is there anything I'm missing in this whole process?

Preparation of GM – Any advice to stop preparing to run a new game?

I have a history of planning and preparation much more than I need before I feel comfortable starting a campaign. I've been playing and running games on various systems for decades, but I have not been able to stop this bad GM habit.

I'm not asking how much preparation is needed, just how to start my brain once I have it. Does anyone have good advice to overcome this mental obstacle and start running a game when I have enough to work?