This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/Fullscreen"> | |
<activity android:name=".activities.LauncherActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<style name="Fullscreen" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="colorPrimary">@color/colorPrimary</item> | |
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
<item name="colorAccent">@color/colorAccent</item> | |
</style> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12-14 12:50:50.810 17379-17379/? I/art: Not late-enabling -Xcheck:jni (already on) | |
12-14 12:50:50.990 17379-17401/vietnamworks.com.pal I/GMPM: App measurement is starting up | |
12-14 12:50:51.020 17379-17402/vietnamworks.com.pal V/com.parse.ParseHttpClient: Using net.java.URLConnection library for networking communication. | |
12-14 12:50:51.020 17379-17401/vietnamworks.com.pal W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185480 | |
12-14 12:50:51.030 17379-17403/vietnamworks.com.pal I/ParseCommandCache: Parse command cache has started processing queued commands. | |
12-14 12:50:51.030 17379-17379/vietnamworks.com.pal V/com.parse.ManifestInfo: Using gcm for push. | |
12-14 12:50:51.030 17379-17379/vietnamworks.com.pal V/com.parse.ManifestInfo: Using GCM for Parse Push, but the app manifest is missing some optional declarations that should be added for maximum reliability. Please make sure that these permissions are declared as children of the root <manifest> element: | |
12-14 12:50:51.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path / { | |
read() = true; | |
write() = isSignedIn(); | |
} | |
//======================================================= | |
//user profile | |
//======================================================= | |
path /profiles/$userid is PrivateProfle { | |
write() = isAdmin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SimpleApp.scala */ | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
import org.apache.spark.mllib.linalg.{Vector, Vectors, SparseVector, Matrix, Matrices} | |
import org.apache.spark.mllib.regression.LabeledPoint | |
import org.apache.spark.mllib.linalg.distributed.{RowMatrix, IndexedRow, IndexedRowMatrix, CoordinateMatrix, MatrixEntry, BlockMatrix} | |
import org.apache.spark.rdd.RDD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SimpleApp.scala */ | |
import org.apache.spark.mllib.linalg.{Vector, Vectors} | |
object SimpleApp { | |
def main(args: Array[String]) { | |
// Create a dense vector (1.0, 0.0, 3.0). | |
val dv: Vector = Vectors.dense(1.0, 0.0, 3.0) | |
// Create a sparse vector (1.0, 0.0, 3.0) by specifying its indices and values corresponding to nonzero entries. | |
val sv1: Vector = Vectors.sparse(3, Array(0, 2), Array(1.0, 3.0)) | |
// Create a sparse vector (1.0, 0.0, 3.0) by specifying its nonzero entries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "Simple Project" | |
version := "1.0" | |
scalaVersion := "2.11.7" | |
libraryDependencies ++= Seq( | |
"org.apache.spark" %% "spark-core" % "1.5.2", | |
"org.apache.hadoop" % "hadoop-client" % "2.6.0", | |
"org.apache.spark" % "spark-mllib_2.11" % "1.5.2" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "Simple Project" | |
version := "1.0" | |
scalaVersion := "2.11.7" | |
libraryDependencies ++= Seq( | |
"org.apache.spark" %% "spark-core" % "1.5.2", | |
"org.apache.hadoop" % "hadoop-client" % "2.6.0" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SimpleApp.scala */ | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
import org.apache.spark.rdd.RDD | |
object SimpleApp { | |
val hadoop_uri = "hdfs://172.18.2.108:9000" | |
def textSearch(textData: RDD[String]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<!-- | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |