This file contains hidden or 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
hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-3.3.6.jar \ | |
-mapper "$PWD/mapper.py" \ | |
-reducer "$PWD/reducer.py" \ | |
-input <path_to_input_in_hdfs> \ | |
-output <path_to_output_folder_in_hdfs> | |
cat sample_data.json | ./mapper.py | sort -k 1,1 | ./reducer.py |
This file contains hidden or 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
- Game theory can help us understand real-world scenarios: Game theory has been applied to many real-world scenarios such as political science, psychology, and economics, as it helps explain human behavior and decision making in situations of conflict or cooperation. | |
- The prisoner's dilemma is a classic example of game theory: The prisoner's dilemma is a classic example used to explain the concept of game theory, where two suspects are arrested for a crime and must decide whether to cooperate with each other or betray each other. | |
- The Nash Equilibrium: Game theory is also known for its contribution to economics, specifically through John Nash's concept of the Nash Equilibrium, which is a state in which no player can improve their position by changing their strategy. | |
- Game theory can help us understand the spread of disease: Game theory can be used to model the spread of diseases, such as understanding the factors that contribute to the spread of an infectious disease, and the strategies that individuals |
This file contains hidden or 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
win |