-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c60de7b
commit 33f7376
Showing
16 changed files
with
283 additions
and
189 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Success! Kerberos is now running. You can enable Kerberos in a Cloudera Manager | ||
cluster from the drop-down menu for that cluster on the CM home page. It will | ||
ask you to confirm that this script performed the following steps: | ||
|
||
* set up a working KDC. | ||
* checked that the KDC allows renewable tickets. | ||
* installed the client libraries. | ||
* created a proper account for Cloudera Manager. | ||
|
||
Then, it will prompt you for the following details (accept defaults if not | ||
specified here): | ||
|
||
KDC Type: MIT KDC | ||
KDC Server Host: quickstart.cloudera | ||
Kerberos Security Realm: CLOUDERA | ||
|
||
Later, it will prompt you for KDC account manager credentials: | ||
|
||
Username: cloudera-scm/admin (@ CLOUDERA) | ||
Password: cloudera | ||
|
||
[cloudera@quickstart ~]$ |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.example; | ||
|
||
import java.io.Serializable; | ||
import java.sql.Date; | ||
|
||
/** | ||
* Created by amarendra on 14/04/17. | ||
*/ | ||
public class WebLog implements Serializable{ | ||
|
||
private String city; | ||
private String osFamily; | ||
private Float latitude; | ||
private Float longitude; | ||
|
||
public String getCity() { | ||
return city; | ||
} | ||
|
||
public void setCity(String city) { | ||
this.city = city; | ||
} | ||
|
||
public String getOsFamily() { | ||
return osFamily; | ||
} | ||
|
||
public void setOsFamily(String osFamily) { | ||
this.osFamily = osFamily; | ||
} | ||
|
||
public Float getLatitude() { | ||
return latitude; | ||
} | ||
|
||
public void setLatitude(Float latitude) { | ||
this.latitude = latitude; | ||
} | ||
|
||
public Float getLongitude() { | ||
return longitude; | ||
} | ||
|
||
public void setLongitude(Float longitude) { | ||
this.longitude = longitude; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "WebLog{" + | ||
"city='" + city + '\'' + | ||
", osFamily='" + osFamily + '\'' + | ||
", latitude=" + latitude + | ||
", longitude=" + longitude + | ||
'}'; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.example; | ||
|
||
import java.sql.Date; | ||
import java.sql.Timestamp; | ||
|
||
/** | ||
* Created by amarendra on 14/04/17. | ||
*/ | ||
public class WebLogMapper { | ||
|
||
public static WebLog mapWebLog(JdbcStream.SqlRow sqlRow){ | ||
|
||
WebLog webLog = new WebLog(); | ||
String city = sqlRow.getString("city"); | ||
String osFamily = sqlRow.getString("os_family"); | ||
Float latitude = sqlRow.getFloat("latitude"); | ||
Float longitude = sqlRow.getFloat("longitude"); | ||
|
||
webLog.setCity(city); | ||
webLog.setOsFamily(osFamily); | ||
webLog.setLatitude(latitude); | ||
webLog.setLongitude(longitude); | ||
|
||
return webLog; | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.