Using join and a shell that understands process substitutions:
$ join -t ' ' -1 2 -2 3 -o2.1,0,1.3,1.4,1.5,1.6 <( sort -k2 file1 ) <( tr ',' ' ' <file2 | sort -k3 ) 1 rs3094315 0 0 C T
The second file, file2, has a problem in that it uses a different field delimiter from the first file, file1. This is remedied by running its content through tr to replace all commas with spaces.
The two files are then sorted on the fields that we're going to join the data on; field 2 in the first file, and field 3 in the second file.
The join will then read these two datasets and join them on the specified spaces-separated fields.
The output fields are determined by the -o flag, and we pick the first field of the second file, the join field, followed by fields 3 through to 6 from the first file.