Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Commit 589ff83

Browse files
committed
Update README.md
Redirect users to https://github.com/databricks/spark-redshift.
1 parent e1bc0c6 commit 589ff83

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

README.md

+1-23
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
RedshiftInputFormat
2-
===
3-
4-
Hadoop input format for Redshift tables unloaded with the ESCAPE option.
5-
6-
Usage in Spark Core:
7-
```scala
8-
import com.github.mengxr.hadoop.input.RedshiftInputFormat
9-
10-
val records = sc.newAPIHadoopFile(
11-
path,
12-
classOf[RedshiftInputFormat],
13-
classOf[java.lang.Long],
14-
classOf[Array[String]])
15-
```
16-
17-
Usage in Spark SQL:
18-
```scala
19-
import com.github.mengxr.hadoop.input.RedshiftInputFormat._
20-
21-
// Call redshiftFile() that returns a SchemaRDD with all string columns.
22-
val records: SchemaRDD = sqlContext.redshiftFile(path, Seq("name", "age"))
23-
```
1+
This project is now hosted at https://github.com/databricks/spark-redshift.

0 commit comments

Comments
 (0)