Update configuration using ldapmodify and using the following LDIF:
dn: cn=module,cn=config
cn: module
objectClass: olcModuleList
olcModuleLoad: memberof
olcModulePath: /usr/lib/ldap
An example service definition under /etc/systemd/system/foo.service:
[Unit]
Description=Foo Service
After=network.target
[Service]| import java.io.DataInputStream; | |
| import java.io.EOFException; | |
| import java.io.IOException; | |
| import org.apache.commons.io.IOUtils; | |
| import org.apache.commons.io.input.BoundedInputStream; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.fs.ContentSummary; | |
| import org.apache.hadoop.fs.FSDataInputStream; | |
| import org.apache.hadoop.fs.FSDataOutputStream; |
| import java.io.File; | |
| import java.io.IOException; | |
| import org.apache.logging.log4j.LogManager; | |
| import org.apache.logging.log4j.Logger; | |
| import org.apache.spark.launcher.SparkAppHandle; | |
| import org.apache.spark.launcher.SparkLauncher; | |
| /** | |
| * An example of submitting a Spark application in a programmatic manner | |
| */ |
See https://livy.apache.org/docs/latest/rest-api.html
Let app.json be the JSON payload that represents the application:
{
"file": "hdfs:///user/user/apps/hello-spark-0.0.1.jar",
"className": "acme.hello_spark.Grep",
"args": ["input/1.txt", "[Mm]agic"],To list properties of a directory we must use the PROPFIND method of WebDAV protocol and provide a request body with properties we are interested into.
We must also provide the Depth header (otherwise the request is rejected as 403 Forbidden).
To retrieve basic properties as size and type, prepare a request body (say propfind-basic.xml) as:
We need to enable at least the following modules: headers, env, proxy, proxy_http, proxy_balancer.
If we are proxying over AJP of course we should also enable proxy_ajp.
The following is a sample configuration for a site acting as a balancer to 2 instances of a backend application:
<IfModule mod_ssl.c>
<VirtualHost 192.168.1.6:443>| #include <iostream> | |
| using namespace std; | |
| constexpr int get_magic_number(int x) | |
| { | |
| return x + 1999; | |
| } | |
| template <int N> |